My laravel eloquent is like this :
$products = Product::where(\'status\', 1)
->where(\'stock\', \'>\', 0)
->where(\'category
I solved this problem by adding the "modes" option and setting only the modes I want to be enabled in config => database.php
'mysql' => [
...
'modes' => [
'STRICT_ALL_TABLES',
'ERROR_FOR_DIVISION_BY_ZERO',
'NO_ZERO_DATE',
'NO_ZERO_IN_DATE',
'NO_AUTO_CREATE_USER',
],
],
See more details in this tutorial