Run all your registered checks from the command line:
php artisan health:checkOr make a HTTP request to the built-in health endpoint:
curl GET https://your.app/healthInstall the package with composer:
composer require brightfish/health-checksPublish the config file:
php artisan vendor:publish --provider="Brightfish\HealthChecks\HealthServiceProvider" --tag="health-checks-config"Create a custom health check class:
namespace App\Health\MyCustomCheck;
class MyCustomCheck extends \Brightfish\HealthChecks\Checks\AbstractCheck
{
public function run(): bool
{
return false;
}
public function getMessage(): string
{
return 'Error';
}
}Finally, list up the class in the config file:
return [
'checks' => [
\App\Health\MyCustomCheck::class,
],
];composer testPlease see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
GNU General Public License (GPL). Please see License File for more information.