В Lumen 6 делаю запрос
$model= DB::select('select * from _seasons GROUP BY title');
или
Season::groupBy('title')->get();
Но ругается
Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'lumen._seasons.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by (SQL: select * from _seasons GROUP BY title)"
Не понимаю как исправить пробовал в базе через консоль mysql
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
не помогло