📅  最后修改于: 2022-03-11 14:54:02.980000             🧑  作者: Mango
Sometime for such queries you need to disable the strict check
So inside config/database.php and inside mysql,
Set 'strict' => false,
->select('user_id', DB::raw('SUM(points) as total_points'))