I want to log query and get it's sql so I tried:
DB::enableQueyLog();
Auth::user()->books();
dd(DB::getQueryLog());
but I get error:
Call to undefined method Illuminate\Database\MySqlConnection::enableQueyLog()"
also tried what suggested in laravel 5.8 docs but nothing get output to screen and when I open the log file there is no sql in it.
please how to log the query and get it is raw sql?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire