PHP code example of jiordiviera / laravel-log-cleaner
1. Go to this page and download the library: Download jiordiviera/laravel-log-cleaner library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jiordiviera / laravel-log-cleaner example snippets
bash
php artisan log:clear
bash
php artisan log:clear --days=30
bash
$ php artisan log:clear
Log file cleared successfully.