Answers for "laravel use artisan log clear not working"

PHP
0

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
Posted by: Guest on February-19-2021

Code answers related to "laravel use artisan log clear not working"

Browse Popular Code Answers by Language