Turn off db query logs

This commit is contained in:
David Bomba 2023-04-28 06:54:45 +10:00
parent aee3b77581
commit c6d04972f7

View File

@ -40,15 +40,15 @@ class AppServiceProvider extends ServiceProvider
*/ */
public function boot() public function boot()
{ {
\DB::listen(function($query) { // \DB::listen(function($query) {
nlog( // nlog(
$query->sql, // $query->sql,
[ // [
'bindings' => $query->bindings, // 'bindings' => $query->bindings,
'time' => $query->time // 'time' => $query->time
] // ]
); // );
}); // });
// Model::preventLazyLoading( // Model::preventLazyLoading(
// !$this->app->isProduction() // !$this->app->isProduction()