Debugging SQL query
use DB; /* Enable logging */ DB::connection()->enableQueryLog(); /* Show last query */ dd(DB::getQueryLog());