protected function configureDailyHandler(Application $app, Writer $log) { $fileName = php_sapi_name(); $log->useDailyFiles($app->storagePath() . '/logs/' . $fileName . '.log', $app->make('config')->get('app.log_max_files', 5)); }