wanghongjun 3 weeks ago
parent
commit
542cb61a56
  1. 6
      app/Providers/AppServiceProvider.php

6
app/Providers/AppServiceProvider.php

@ -26,8 +26,8 @@ class AppServiceProvider extends ServiceProvider
Schema::defaultStringLength(120); // 将默认字符串长度设为 191
// 日志记录sql语句
DB::listen(function ($query) {
Log::info($query->sql);
});
// DB::listen(function ($query) {
// Log::info($query->sql);
// });
}
}

Loading…
Cancel
Save