Is your Laravel app OK? Health checks running in production to ensure you can sleep well at night and be sure everything is still OK.
backstage/laravel-ok is a Laravel package for is your laravel app ok? health checks running in production to ensure you can sleep well at night and be sure everything is still ok..
It currently has 6 GitHub stars and 3.660 downloads on Packagist (latest version v1.0.0).
Install it with composer require backstage/laravel-ok.
Discover more Laravel packages by backstage
or browse all Laravel packages to compare alternatives.
Last updated
Health checks made in production to ensure you can sleep well at night and be sure everything is still OK.
You can install the package via composer:
composer require backstage/laravel-ok
You can then install the package by using the ok:install Artisan command:
php artisan ok:install
This is the contents of the published config file:
return [
'notifications' => [
'enabled' => env('LARAVEL_OK_NOTIFICATIONS_ENABLED', true),
'failed_notification' => CheckFailedNotification::class,
'notifiable' => Notifiable::class,
'via' => [
// 'discord' => [
// 'channel' => 123456790,
// ],
// 'mail' => [
// 'to' => 'text@example.com',
// ],
// 'slack' => [
// 'webhook' => 'webhook-url',
// ],
// 'telegram' => [
// 'channel' => 1234567890,
// ],
],
],
'checks' => [
'audit' => [
'path' => [
// '~/some/bin',
],
],
],
];
To register checks for your application, you need to register them in the checks array in your AppServiceProvider register method.
use Backstage\Laravel\OK\Facades\OK;
class AppServiceProvider extends ServiceProvider
{
// ...
public function register()
{
OK::checks([
EnvironmentCheck::shouldBe('production'),
DebugModeCheck::shouldBe('false'),
]);
}
}
You can now run the checks using the ok:check Artisan command:
php artisan ok:check
www.google.com.This package is inspired by Laravel Health.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please review our security policy on how to report security vulnerabilities.