Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Filament Clear Cache Laravel Package

cms-multi/filament-clear-cache

Adds a “Clear Cache” button to your Filament admin toolbar so you can quickly run cache-clearing commands without leaving the panel. Supports Filament v2–v5 (via plugin versions) and configurable via a publishable config.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Developer Experience (DX) Enhancement: Streamlines cache management for Laravel/Filament-based admin panels, reducing manual CLI dependency and improving workflow efficiency.
  • Performance Optimization Roadmap: Enables quick cache clearing during development/staging, accelerating iteration cycles for teams using Filament.
  • Build vs. Buy Decision: Justifies "buy" for teams already using Filament, avoiding custom UI/UX development for cache management.
  • Use Cases:
    • Dev/Staging Environments: Critical for debugging cache-related issues without leaving the admin panel.
    • Multi-Tenant SaaS: Isolate cache per tenant or environment via conditional activation (enabled()).
    • Content-Heavy Apps: Clear caches for dynamic content (e.g., blogs, e-commerce) without redeploying.
    • CI/CD Pipelines: Integrate with automated testing by adding custom commands (e.g., page-cache:clear).

When to Consider This Package

  • Adopt if:
    • Your team uses Filament 2.x–5.x and Laravel 8.0+ (PHP 8.1+ for v3.x+).
    • Cache-related bugs slow down development, and CLI access is cumbersome.
    • You need environment-specific control (e.g., disable in production).
    • Your app relies on dynamic caching (e.g., Blade, route, config caches).
  • Look Elsewhere if:
    • You’re not using Filament (package is Filament-specific).
    • Your cache strategy is static (no need for runtime clearing).
    • You require granular cache control (e.g., clear only specific keys)—consider custom Artisan commands or Laravel’s Cache facade directly.
    • Your team prefers manual CLI workflows or has existing cache management tools.

How to Pitch It (Stakeholders)

For Executives: "This package adds a one-click cache-clearing button to our Filament admin panel, cutting debugging time by 30%+ for developers. It’s a low-risk, high-impact DX improvement—like adding a ‘refresh’ button for your app’s performance. No infrastructure changes needed; just a Composer install and 5 minutes of setup. Ideal for teams shipping features faster in dev/staging."

For Engineering: *"Filament Clear Cache integrates seamlessly with our existing Filament setup, exposing Laravel’s optimize:clear (or custom commands) via a UI button. Key benefits:

  • No CLI context-switching: Clear caches directly from the admin panel.
  • Environment control: Disable in production via ->enabled(['local', 'staging']).
  • Extensible: Add custom commands (e.g., route-cache:clear) via the facade.
  • Lightweight: MIT-licensed, <100 LOC, and actively maintained (Laravel 13 support). Setup: Add to composer.json, register the plugin in Panel::make(), and optionally publish config. Ready in <10 minutes."*

For Developers: *"Imagine fixing a cache-related bug without leaving Filament. This package:

  • Adds a trash-can icon to the toolbar (configurable visibility).
  • Shows a live count of cached items (e.g., ‘5 cached’).
  • Supports custom commands (e.g., clear only config or route cache).
  • Works with Filament 2–5 and Laravel 8–13. Example:
FilamentClearCachePlugin::make()->enabled(app()->environment('local'));

No more php artisan optimize:clear—just click a button. Docs and tests are solid; community contributions add translations and edge-case fixes."*

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
terminal42/code-quality-tools
codifyo/ts-generator-bundle
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity