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