shuvroroy/filament-spatie-laravel-health
Pros:
spatie/laravel-health, which provides a batteries-included approach with 100+ pre-built checks (e.g., database, queue, cache, environment variables, third-party APIs). Aligns with Laravel’s ecosystem and microservice-friendly design.Health::checks() and allows UI customization (icons, labels, navigation groups) via Filament’s page extension system.Cons:
QueueConnectionCheck, ThirdPartyApiCheck).| Risk Area | Severity | Mitigation |
|---|---|---|
| Filament Version Mismatch | Medium | Pin Filament version in composer.json and test against target Filament major version. |
| Database Migration Issues | Low | Use php artisan vendor:publish --tag="health-migrations" and test migrations in staging. |
| Performance Overhead | Low | Benchmark health checks in production-like environments; avoid excessive checks. |
| Security Misconfigurations | Medium | Restrict access via Filament’s built-in auth (e.g., authorize method) or middleware. |
| Storage Backend Failures | Low | Implement fallback storage (e.g., log file) if primary backend (e.g., Redis) fails. |
/health) alongside the Filament UI./up endpoint).spatie/laravel-health's webhook support or a third-party tool like Laravel Nova Health.Health::check() implementations.Target Environments:
spatie/laravel-health directly.Compatibility Matrix:
| Component | Supported Versions | Notes |
|---|---|---|
| Laravel | 10.x–13.x | Tested up to v13 (as of v3.3.0). |
| Filament | 3.x–5.x | v3.0.0-beta1+ supports Filament v4+. |
| PHP | 8.1–8.5 | PHP 8.5 support added in v3.3.0. |
| Spatie Laravel Health | v1.x | Underlying package; stable and mature. |
| Database | MySQL, PostgreSQL, SQLite | Eloquent storage requires migrations. |
| Storage Backend | Database, Redis, Log File | Configurable via spatie/laravel-health. |
Non-Compatible Scenarios:
composer require shuvroroy/filament-spatie-laravel-health
AdminPanelProvider:
->plugin(FilamentSpatieLaravelHealthPlugin::make())
AppServiceProvider:
Health::checks([
OptimizedAppCheck::new(),
DatabaseConnectionCheck::new(),
QueueConnectionCheck::new(),
]);
php artisan vendor:publish --tag="health-migrations"
php artisan migrate
spatie/laravel-health's webhook support or integrate with a monitoring tool (e.g., Laravel Nova Health, Sentry).PanelProvider is correctly configured to avoid plugin conflicts.filament:cache-reset) if issues arise.DatabaseConnectionCheck and a custom one).Health::check()’s skip() method for conditional checks.health_check_result_history_items table schema matches expectations.How can I help you explore Laravel packages today?