Answers for "Laravel DB select last"

PHP
6

print last sql query laravel

DB::enableQueryLog(); // Enable query log

// Your Eloquent query executed by using get()

dd(DB::getQueryLog()); // Show results of log
Posted by: Guest on May-09-2020
0

Last recode of DB using laravel

return DB::table('files')->order_by('upload_time', 'desc')->first();
Posted by: Guest on May-26-2020

Browse Popular Code Answers by Language