laravel get last query that was performed code example Example: print last query laravel DB::enableQueryLog(); dd(DB::getQueryLog());