Require the package using composer:
composer require cubesystems/laravel-health-check
You can set your monitoring system to ping the liveness and readiness URLs or CLI to get alerted if there are any problems.
In Kubernetes and OpenShift you can use the probes also for container health checks.
{APP_URL}/health-check/liveness
Liveness probe will respond with http 200 status code if the service functions without problems.
{APP_URL}/health-check/readiness
Readiness probe will respond with http 200 status code if the service is up and functions without problems.
php artisan healthcheck:check scheduler
php artisan healthcheck:check queue