What problem does it solve?
This Skill eliminates the frustration of stale Laravel configurations, where changes in .env or config files aren't reflected due to outdated caches. It prevents wasted debugging time and ensures your application always uses the latest settings.
Core Features & Use Cases
- Automatic Cache Management: Detects modifications in
.env or config/*.php files and intelligently clears the relevant Laravel caches (config, route, view, application).
- Cache State Diagnosis: Provides a clear overview of current cache files, their timestamps, and the active configuration source, helping to quickly identify issues.
- Server Restart Guidance: Offers precise instructions on when and how to restart your PHP server to ensure new configurations are loaded into memory.
- Use Case: After updating your database credentials in
.env, this Skill automatically clears the config cache and guides you to restart your server, ensuring your application connects to the new database without issues.
Quick Start
I just updated my .env file. Please use the cache-guard skill to ensure all Laravel caches are cleared and my changes are applied.