clear log file laravel command
truncate -s 0 storage/logs/laravel.log
clear log file laravel command
truncate -s 0 storage/logs/laravel.log
clear 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
How To Clear Laravel.Log In Laravel?
echo "" > storage/logs/laravel.log
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us