How to enable query log in laravel?
Our first step should be
After our query it should be placed
$querieslog = DB::getQueryLog();
After that it shou;ld be placed
A lot of recent Laravel interview questions were based on this information.
$result = User:where(['status' => 1])->get();
$log = DB::getQueryLog();