laravel 5.3 GROUP BY 问题

问题:
SQLSTATE[42000]: Syntax error or access violation: 1055 'demo.archives.id' isn't in GROUP BY (SQL: select `id`, `author`, count(*) as total from `archives` where `created_at` >= 2016-10-18 and `created_at` < 2016-10-19 group by `author`
解决:
编辑’config/database.php’:
'strict' => false,