- Laravel Version: 5.8.12
- PHP Version: 7.2.14
- Database Driver & Version: MySQL 5.7.20
Description:
Just this morning upgraded from 5.8.11 to 5.8.12 which completely broke my application on the wherePivot part.
Broken:
$variable = $user->books()->wherePivot('owner', true)->findOrFail($id);
Fixed:
$variable = $user->books()->wherePivot('owner', '=', true)->findOrFail($id);
Has this been done intentionally? I cannot find anything regarding this change inside the core update. My code has not changed since the upgrade from 5.8.11 -> 5.8.12
Description:
Just this morning upgraded from 5.8.11 to 5.8.12 which completely broke my application on the wherePivot part.
Broken:
Fixed:
Has this been done intentionally? I cannot find anything regarding this change inside the core update. My code has not changed since the upgrade from 5.8.11 -> 5.8.12