Awesome
Laravel Trash Cleaner
<p align="center"> <a href="https://github.com/omaralalwi/laravel-trash-cleaner" target="_blank"> <img src="https://raw.githubusercontent.com/omaralalwi/laravel-trash-cleaner/master/public/images/laravel-trash-cleaner.jpg" alt="laravel trash cleaner"> </a> </p>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:
composer require omaralalwi/laravel-trash-cleaner
Publishing Configuration File
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
Usage
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.
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 omaralwi2010@gmail.com
.
Credits
License
The MIT License (MIT). See LICENSE for more information.
📚 Helpful Open Source Packages
-
<a href="https://github.com/omaralalwi/lexi-translate"><img src="https://raw.githubusercontent.com/omaralalwi/lexi-translate/master/public/images/lexi-translate-banner.jpg" width="26" height="26" style="border-radius:13px;" alt="lexi translate" /> Lexi Translate </a> simplify managing translations for multilingual Eloquent models with power of morph relationships and caching .
-
<a href="https://github.com/omaralalwi/Gpdf"><img src="https://raw.githubusercontent.com/omaralalwi/Gpdf/master/public/images/gpdf-banner-bg.jpg" width="26" height="26" style="border-radius:13px;" alt="laravel Taxify" /> Gpdf </a> Open Source HTML to PDF converter for PHP & Laravel Applications, supports Arabic content out-of-the-box and other languages..
-
<a href="https://github.com/omaralalwi/laravel-taxify"><img src="https://raw.githubusercontent.com/omaralalwi/laravel-taxify/master/public/images/taxify.jpg" width="26" height="26" style="border-radius:13px;" alt="laravel Taxify" /> laravel Taxify </a> Laravel Taxify provides a set of helper functions and classes to simplify tax (VAT) calculations within Laravel applications.
-
<a href="https://github.com/omaralalwi/laravel-deployer"><img src="https://raw.githubusercontent.com/omaralalwi/laravel-deployer/master/public/images/deployer.jpg" width="26" height="26" style="border-radius:13px;" alt="laravel Deployer" /> laravel Deployer </a> Streamlined Deployment for Laravel and Node.js apps, with Zero-Downtime and various environments and branches.
-
<a href="https://github.com/omaralalwi/laravel-time-craft"><img src="https://raw.githubusercontent.com/omaralalwi/laravel-time-craft/master/public/images/laravel-time-craft.jpg" width="26" height="26" style="border-radius:13px;" alt="laravel Trash Cleaner" /> laravel Time Craft </a>simple trait and helper functions that allow you, Effortlessly manage date and time queries in Laravel apps.
-
<a href="https://github.com/omaralalwi/laravel-startkit"><img src="https://raw.githubusercontent.com/omaralalwi/laravel-startkit/master/public/screenshots/backend-rtl.png" width="26" height="26" style="border-radius:13px;" alt="Laravel Startkit" /> Laravel Startkit </a> Laravel Admin Dashboard, Admin Template with Frontend Template, for scalable Laravel projects.