This error is not because of the Laravel actually. This is MySQL error and which comes if you have ONLY_FULL_GROUP_BY inside the SQL_MODE variable in your DB.
Of course you can handle it at MySQL level by removing ONLY_FULL_GROUP_BY from you SQL_MODE.
But Laravel also provides the functionality to handle this error.
check your config/database.php And check if inside the mysql settings there is one that is like:
1
|
'strict' => true,
|
If you turn 'strict' to false will resolve you issue like;
1
|
'strict' => false,
|
...