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 :: Merge Cell phpoffice phpexcel 
Php :: php mysql if exists 
Php :: migrate only one table laravel 
Php :: Laravel Auth Redirect based on role 
Php :: php intl 
Php :: laravel hasfile 
Php :: php array_reverse keep keys 
Php :: get order details by id woocommerce 
Php :: how to save information on pdf file in laravel project 
Php :: ubuntu set alternatives 
Php :: Cross-site request forgery validation failed. Required param "state" missing from persistent data 
Php :: php clean all output buffers 
Php :: $_GET["name"] 
Php :: error repoerting in php 
Php :: random string php 
Php :: php get query string 
Php :: laravel string capitalize in view 
Php :: laravel nigerian time zone 
Php :: php date format iso 
Php :: woocommerce product object 
Php :: send password reset link code wp 
Php :: how to force delete in laravel 8 
Php :: laravel get current action name 
Php :: delete_user hook in wordpress 
Php :: laravel Command "laravel/ui" is not defined. 
Php :: how to add recaptcha validation in php 
Php :: laravel old value for select option 
Php :: php redirect 404 page not found 
Php :: Undefined index: HTTP_HOST 
Php :: php qrscanner webcam 
ADD CONTENT
Topic
Content
Source link
Name
2+6 =