At times, database queries that we've crafted may experience prolonged execution due to incorrect usage or inefficient relationships. To address and be able to detect & troubleshoot these time-consuming queries, Laravel provides a specialized method:```phpDB::enabledQueryLog();DB::whenQueryingForLongerThen(10000, function ($db) {Log::warning("Detected long time query", $db->getQueryLog());});```In this example, the value 10000 represents a duration of 10 seconds. This parameter is specified in milliseconds. The second parameter is a closure function that will be executed when the query surpasses the time limit defined in the first parameter.I hope you find this useful. Happy coding!