clear laravel.log

PHP
//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:cleartruncate -s 0 storage/logs/laravel.log
Source

Also in PHP: