How to set the maximum number of days to save laraveldaily when laravel logs are daily. How to set the maximum number of days when laravel logs are daily? in laraveldaily, when logs are set to daily, logs are saved for seven days by default. if the number of days exceeds the limit, logs generated before seven days are cleared. You can set the maximum number of days to save when laravel logs are daily.
In laravel, when the log is set to daily, the logs are saved for seven days by default. if the log exceeds the limit, the logs generated seven days ago are cleared. You can modify the default settings. if you want to save logs for 30 days, the configuration is as follows:
Add the following code to the config/app. php configuration file:
'Log _ max_files '=> 30,
After you modify the configuration, you need to restart the php server to make the configuration take effect !!!
When logging is set to daily in laravel, logs of seven days are saved by default. logs of the past seven days are cleared if they are exceeded. Yes...