If you want to log all the database queries during development add this snippet to your AppServiceProvider
1public function boot()2{3 if (App::environment('local')) {4 DB::listen(function ($query) {5 logger(Str::replaceArray('?', $query->bindings, $query->sql));6 });7 }8}
Tip given by @mmartin_joo