Wyczyść polecenie plik dziennika Laravel
truncate -s 0 storage/logs/laravel.log
Xanthous Xenomorph
truncate -s 0 storage/logs/laravel.log
//routes/console.php
Artisan::command('logs:clear', function() {
exec('rm ' . storage_path('logs/*.log'));
$this->comment('Logs have been cleared!');
})->describe('Clear log files');
//php artisan logs:clear