uipps / laravel-log-clear
A laravel artisan log clear
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/uipps/laravel-log-clear
Requires
- php: ^5.1|^7.0|^8.0
README
A laravel artisan log clear.
How does it work?
This package expects that you are using Laravel 5.1 or above.
You will need to import the uipps/laravel-log-clear
package via composer:
Configuration
composer require uipps/laravel-log-clear
You can also pass options directly.
--keepfiles=2
--dry-run
Usage
Assuming you have already configured your database, you are now all set to go.
- Let's scaffold some of your models from your default connection.
// delete all log files php artisan log:clear // full params php artisan log:clear -k 2 -d // Get info about the command and options php artisan log:clear --help // Pass the number of files to keep when deleting old log files. Overrides the config setting. // This overrides the default set in config php artisan log:clear --keepfiles=8 // Run without actually deleting any files php artisan log:clear --dry-run // php artisan log:clear --dry-run --keepfiles=8