Download the PHP package omaralalwi/laravel-trash-cleaner without Composer
On this page you can find all versions of the php package omaralalwi/laravel-trash-cleaner. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download omaralalwi/laravel-trash-cleaner
More information about omaralalwi/laravel-trash-cleaner
Files in omaralalwi/laravel-trash-cleaner
Package laravel-trash-cleaner
Short Description clean logs and debug files (clockwork , laravel telescope and more)
License MIT
Homepage https://github.com/omaralalwi/laravel-trash-cleaner
Informations about the package laravel-trash-cleaner
Laravel Trash Cleaner
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.
Installation
You can install the package via composer:
Publishing Configuration File
Optionally, you can publish the package's configuration file to customize the cleanup schedule and other settings:
Usage
Run the following command to clear all log and debug files (safely):
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.
Scheduling the Cleanup Job
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.
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security-related issues, please email [email protected]
.
Credits
License
The MIT License (MIT). See LICENSE for more information. :