isn't in GROUP BY issue in Laravel
Copy Below Code
View As A Text File
Show Text Only
Show API
Edit Code
You are using strict mode in laravel. By the you can tweak it to your needs.
got to config/database.php in set strict=>false and you are good to go.