【发布时间】:2021-03-02 18:01:10
【问题描述】:
【问题讨论】:
【问题讨论】:
打开config\logging.php 文件并将permission 密钥添加到您的默认日志通道。似乎这个功能可以从Laravel 5.6.10获得。
示例:
return [
'channels' => [
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'permission' => 0664, // this is the new key to add
],
],
];
注意事项:
single
permission 键的值不带引号且前导零。在php manual of chmod 中阅读更多相关信息
【讨论】: