get last entries sql laravel code example
Example 1: print last query laravel
DB::enableQueryLog();
dd(DB::getQueryLog());
Example 2: laravel get last record
return DB::table('files')->order_by('upload_time', 'desc')->first();
DB::enableQueryLog();
dd(DB::getQueryLog());
return DB::table('files')->order_by('upload_time', 'desc')->first();