laravel debug query

DB::enableQueryLog();

$results=DB::select('select * from users where id=?',['1']);

dd(DB::getQueryLog());

 

 

teratail.com