Downloads
Stars
Version
This Laravel package adds a GET/POST route which can be used to clear an application's cache.
To install this package simply run:
composer require abzudev/laravel-cache-clear
If you are using Laravel 5.5+ then the package will register itself automatically.
Alternatively, you will need to add the CacheClearServiceProvider to the list of providers in app.php.
To check if the package is installed correctly, simply run:
php artisan route:list
and check that the route exists.
Example:
Once the package has been successfully installed, you can clear your application's cache
by visiting the url https://yourwebsitesurl.com/cc
or doing a POST request to https://yourwebsiteurl.com/cc
.
Below are screenshots of what is expected with each method:
GET:
POST:
Run the tests with:
composer test
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 [email protected] instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.