In laravel, when the log is set to daily, logs for seven days will be saved by default. If the log exceeds seven days, the logs from seven days ago will be cleared. log. The default settings can be modified. If you want to save 30 days of logs, the configuration is as follows:
Add the following code in the configuration file config/app.php:
‘log_max_files’ => 30,
After modifying the configuration, you need to restart the php server for the configuration to take effect! ! !