dump last query laravel code example Example: enablequerylog laravel \DB::enableQueryLog(); dd(\DB::getQueryLog());