echo query in laravel

Solutions on MaxInterview for echo query in laravel by the best coders in the world

showing results for - "echo query in laravel"
Martina
12 Nov 2018
1DB::enableQueryLog();
2$users = User::select("*")->get();
3$quries = DB::getQueryLog();
4dd($quries);
5DB::table('users')->toSql();
6dd($query);
Nico
05 Feb 2018
1DB::enableQueryLog();
2# your code
3dd(DB::getQueryLog());
4DB::disableQueryLog();