Laravel 13.23 adds a built-in monthly logging driver that rotates log files once per month instead of daily.
Daily log rotation creates hundreds of log files over time. If your application has moderate log volume, the monthly driver keeps logs organized into one file per month (e.g. laravel-2026-08.log).
// config/logging.php
'channels' => [
'monthly' => [
'driver' => 'monthly',
'path' => storage_path('logs/laravel.log'),
'days' => 12, // Retain 12 months of logs
],
],
- One log file per month (e.g. laravel-2026-08.log)
- days parameter controls how many months of logs to retain
- Ideal for production apps with moderate log volume
Related Tips
View all tips →Use config() Instead of env() in Application Code
Call env() only inside configuration files and use config() throughout your application code to prevent missing values when configuration is cached.
Retrieve and Override Configurations with the config() Helper
Use config('app.name') to retrieve settings and config(['app.debug' => true]) to set runtime overrides.