DB::enableQueryLog(); DB::whenQueryingForLongerThen(1000, function ($connection) { Log::warning( 'Long running queries have been detected.', $connection->getQueryLog() );});
Tip given by @realstevebauman
DB::enableQueryLog(); DB::whenQueryingForLongerThen(1000, function ($connection) { Log::warning( 'Long running queries have been detected.', $connection->getQueryLog() );});
Tip given by @realstevebauman