Question : How To Clear Laravel.Log In Laravel?
Answered by : jealous-jellyfish-zh0ve0746efy
echo "" > storage/logs/laravel.log
Source : https://www.tutsplanet.com/how-to-clear-laravel-log-in-laravel/ | Last Update : Wed, 06 Oct 21
Question : clear laravel.log
Answered by : helpful-hyena-do07jssy8s2m
//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
Source : https://stackoverflow.com/questions/28127495/in-phps-laravel-how-do-i-clear-laravel-log/53312697 | Last Update : Fri, 26 Feb 21
Question : delete laravel error log
Answered by : thomas-nt5uguv8gb64
truncate -s 0 /app/storage/logs/laravel.log
Source : | Last Update : Fri, 01 Jul 22