To view the latest sql query executed in Laravel you can
DB::enableQueryLog(); print_r(DB::getQueryLog());
Note that you have to enable the query log before executing the query and view/print it after execution ..
A good practice is to enable it only in Local environment
if (App::environment('local')) { // The environment is local DB::enableQueryLog(); }