Add a button to easily clear the cache from your filament admin.
You can install the package via composer:
composer require cms-multi/filament-clear-cache
Under the hood optimize:clear
is called after clicking the button.
You may register any custom commands from inside the boot()
method of your Service Provider:
use CmsMulti\FilamentClearCache\Facades\FilamentClearCache;
public function boot()
{
FilamentClearCache::addCommand('page-cache:clear');
}
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.