spatie/laravel-health
Monitor your Laravel app’s health by registering checks (disk space, etc.) with warning/fail thresholds. Get notified via mail or Slack when checks degrade, and extend with custom checks for proactive alerting.
Pros:
Cons:
EloquentHealthResultStore requires migrations and a database table, adding complexity for headless or serverless deployments.Schedule, Notifications, Queue). No breaking changes to existing codebase.composer require spatie/laravel-health.php artisan vendor:publish --tag="health-config" --tag="health-migrations".php artisan migrate.UsedDiskSpaceCheck, DatabaseConnectionCheck) in a service provider.config/health.php.Schedule::command(\Spatie\Health\Commands\RunHealthChecksCommand::class)->everyMinute(); to app/Console/Kernel.php.Spatie\Health\Checks\Check for business logic (e.g., PaymentGatewayCheck).Health::checks([
new class extends Check {
public function performCheck(CheckResult $result): void {
if (!PaymentGateway::isAvailable()) {
$result->fail('Payment gateway is down');
}
}
},
]);
php artisan health:check.config/health.php; easy to update.How can I help you explore Laravel packages today?