- Show SQL
Add the following to the boot
method in app/Providers/AppServiceProvider.php
public function boot()
{
\DB::listen(function ($query) {
logger($query->sql, [
'bindings' => $query->bindings,
'time' => $query->time,
]);
});
}