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()
{
\DB::listen(function($query) {
nlog(
$query->sql,
[
'bindings' => $query->bindings,
'time' => $query->time
]
);
});
// \DB::listen(function($query) {
// nlog(
// $query->sql,
// [
// 'bindings' => $query->bindings,
// 'time' => $query->time
// ]
// );
// });
// Model::preventLazyLoading(
// !$this->app->isProduction()