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 makes sure the application can connect to your cache system and read/write to the cache keys. 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\CacheCheck;
Health::checks([
CacheCheck::new(),
]);
To check another cache driver, call driver().
CacheCheck::new()->driver('another-cache-driver'),
How can I help you explore Laravel packages today?