nexxai/laravel-cfcache
Laravel integration for Cloudflare's cache API. Automatically purge edge-cached URLs when Eloquent models change, define custom purge rules, and manage zones from Artisan commands—keeping content fresh without manual dashboard work.
composer require nexxai/laravel-cfcache and, if the package ships a config file, publish it (php artisan vendor:publish --tag=cfcache-config). Check the README for the exact tag — the package is small, so the README is the canonical source of truth.php artisan list and grep for the package namespace (e.g. php artisan list | grep cfcache). That reveals the exact command signatures, arguments, and options you'll be wiring into app code.php artisan tinker (via Artisan::call(...)) or from a throwaway route, confirm the same behaviour you get on the CLI, then move it into a service class, listener, or job.Artisan::call(); otherwise Artisan::call('cfcache:...', $args) plus Artisan::output() is the pragmatic route.CacheManager/CachePurger class so tests can fake it and so you have one place to swap the underlying call if the package's API shifts again.php artisan but not in a request, this is almost always why.Artisan::call() returns the exit code and swallows output into Artisan::output(). Log both; a silent non-zero exit is the classic "cache wasn't purged and nobody noticed" bug.php artisan config:clear after publishing/updating, and remember production runs with a cached config — new config keys added in a minor release won't appear until you re-cache..env, never commit them, and be mindful of provider rate limits if the command hits an external API — batching or debouncing calls from observers matters at scale.feat: minor bump — no breaking changes signalled — but the programmatic API is new surface area. Pin to ^1.6 and skim the changelog on each minor in case the invocation contract tightens.How can I help you explore Laravel packages today?