Efficiently cleans up log and debug files generated by various debugging tools such as Clockwork and Laravel Telescope, enhancing system performance by freeing up valuable disk space. It features a user-friendly progress bar to monitor the cleanup process in real-time, ensuring a seamless experience for developers aiming to maintain optimal application health.
You can install the package via composer:
composer require omaralalwi/laravel-trash-cleaner
Optionally, you can publish the package's configuration file to customize the cleanup schedule and other settings:
php artisan vendor:publish --provider="Omaralalwi\LaravelTrashCleaner\Providers\LaravelTrashCleanerServiceProvider" --tag=config
Run the following command to clear all log and debug files (safely):
php artisan trash:clean
After publishing, you can find the configuration file at config/laravel-trash-cleaner.php
. Modify the 'schedule'
and 'frequency'
options as needed to automate the cleanup process.
To schedule the cleanup job, ensure that the 'schedule'
option in the laravel-trash-cleaner.php
configuration file is set to true
, and specify the desired 'frequency'
(e.g., 'daily'
, 'weekly'
). The package automatically registers the cleanup command with Laravel's task scheduler when the application boots.
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security-related issues, please email omaralwi2010@gmail.com
.
The MIT License (MIT). See LICENSE for more information. :