A Laravel Artisan command to clear application logs with additional options. The logs cleared by this command are located in the logs directory within the Laravel storage folder. It is a standard practice in Laravel to store logs in this location.
Install the package via Composer:
composer require ozdemir/clear-logs-command
The package will be automatically registered by Laravel.
To clear all logs in the default logs directory, run the following command:
php artisan logs:clear
--dry-run: Simulate the command without clearing any files.
php artisan logs:clear --dry-run
This package is open-sourced software licensed under the MIT license.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Please see CHANGELOG for more information on what has changed recently.
The MIT License (MIT). Please see License File for more information.