Laravelでログファイルをクリアする
route/console.phpに以下を記述
// ログファイル クリア
Artisan::command('logs:clear', function() {
exec('rm ' . storage_path('logs/*.log'));
$this->comment('Logs have been cleared!');
})->describe('Clear log files');
あとはターミナルで以下のコマンドを実行すればきれいさっぱりlaravel.logは空っぽになります。
php artisan logs:clear
これでサイズが大きくなったログファイルはスッキリします!!