1DB::enableQueryLog();
2$users = User::select("*")->get();
3$quries = DB::getQueryLog();
4dd($quries);
5DB::table('users')->toSql();
6dd($query);
1DB::enableQueryLog(); // Enable query log
2
3// Your Eloquent query executed by using get()
4
5dd(DB::getQueryLog()); // Show results of log
6