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.
This check will make sure Redis is running. By default, this check will make sure the default connection is working.
Here's how you can register the check.
use Spatie\Health\Facades\Health;
use Spatie\Health\Checks\Checks\RedisCheck;
Health::checks([
RedisCheck::new(),
]);
To customize the monitored Redis connection name, call connectionName.
RedisCheck::new()->connectionName('other-redis-connection-name'),
How can I help you explore Laravel packages today?