@jlrdw
the query works when I manually set it to false in config/database
however, it doesn't work when I set it to true in the config and then try it like you described.
config(['database.connections.mysql.strict' => false]);
$data = Matchup::currentStatus('closed')->groupByRaw("DATE_FORMAT(date, '%Y-%m-%d')")->get();
even when running php artisan config:clear
EDIT: found the solution to this problem here: https://stackoverflow.com/a/53317109/13826039
config(['database.connections.mysql.strict' => false]);
DB::reconnect();
$data = Matchup::currentStatus('closed')->groupByRaw("DATE_FORMAT(date, '%Y-%m-%d')")->get();
config(['database.connections.mysql.strict' => true]);
DB::reconnect();
this works now but now I am wondering will this affect performance.