Search
 
SCRIPT & CODE EXAMPLE
 

PHP

clear log file laravel command

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

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 :: Add new column to table in mysql using php 
Php :: How to use my constants in Larvel 
Php :: php button to another page 
Php :: laravel curl package 
Php :: array prepend php 
Php :: PDOException::("SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes") 
Php :: Fetch Data From Database With PDO 
Php :: left join laravel 
Php :: create livewire component 
Php :: get permalink by id wordpress 
Php :: laravel custom log 
Php :: how to add sidebar to page.php 
Php :: php erase element from array 
Php :: php get filetype 
Php :: live update mysql data in php 
Php :: cannot use font awesome in php mvc 
Php :: redrectnh to https n laravel 
Php :: php array extract value 
Php :: changing created_at to short date time 
Php :: how to set base url in codeigniter 
Php :: php artisan tinker PsyExceptionRuntimeException Unable to create PsySH runtime directory 
Php :: php unique id 
Php :: report simple error in php 
Php :: check if phone number is valid php 
Php :: str_ireplace 
Php :: laravel artisan call with confirm 
Php :: convert time to 24 hour format laravel 
Php :: generate slug on create laravel 
Php :: join table laravel count 
Php :: how unique field in table in phpmyadmin 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =