\DB::connection()->enableQueryLog();
$result = \DB::select('select * from activity');
$log = \DB::getQueryLog();
dd($log);
\error_log('$log = ' . print_r($log, true) . "\n", 3, "/tmp/error.log");
\DB::connection()->enableQueryLog();
$result = \DB::select('select * from activity');
$log = \DB::getQueryLog();
dd($log);
\error_log('$log = ' . print_r($log, true) . "\n", 3, "/tmp/error.log");