get last executed query laravel 7 code example Example: print last query laravel DB::enableQueryLog(); dd(DB::getQueryLog());