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:cleartruncate -s 0 storage/logs/laravel.log
Also in PHP:
- check type of var in php
- create database seeder in laravel
- CONTAIN PHP
- adeleye ayodeji
- dynamic url laravel
- Cache::forget laravel command
- date formats in php
- binary base64 decode php
- disable admin bar wordpress
- error display php
- add checkbox in server side datatable laravel
- clear cahce laravel
- Create Laravel Project 7
- +1 day in while php
- date'G')
- e error reporting all
- csv to json php
- check if substring php
- Uncaught RedisException: Redis server went away in
- count the no of characters in a string in phph
- catch exception php of spetie
- api newslater with php
- check format have image laravel post
- filter_var filter_validate_url