Search
 
SCRIPT & CODE EXAMPLE
 

PHP

How To Clear Laravel.Log In Laravel?

echo "" > storage/logs/laravel.log
Comment

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
Comment

delete laravel error log

truncate -s 0 /app/storage/logs/laravel.log
Comment

PREVIOUS NEXT
Code Example
Php :: clear log file laravel 
Php :: set border phpoffice phpexcel 
Php :: php 8 null safe operator 
Php :: return response at failedValidation() in request laravel 
Php :: difference between array_merge and + 
Php :: php Convert multidimensional array into single array 
Php :: laravel route regex except 
Php :: php find in array 
Php :: cakephp sql query 
Php :: laravel pluck multiple columns 
Php :: php print 
Php :: numbers not displaying in laravel pagination 
Php :: php laravel string substring 
Php :: enable socket in php 
Php :: Merge Two Collection 
Php :: php console print 
Php :: php replace url parameter value 
Php :: laravel eloquent join two models 
Php :: how to create module in laravel 
Php :: send gmail 
Php :: API call in PHP using cURL 
Php :: php $this 
Php :: laravel seeder update 
Php :: gate and policy in laravel 
Php :: php run command windows 
Php :: laravel env in js 
Php :: php string remove last character 
Php :: display elements of the array 
Php :: laravel dingo api response 
Php :: json data wdit in php 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =