EmilioBravo / filament-spatie-laravel-health

Monitor the health of a Laravel application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Filament Spatie Laravel Health

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This package provides a Filament page that you can monitor the health of your application by registering checks using the spatie/laravel-health package.

Health Check Results - Filament Demo

Installation

You can install the package via composer:

composer require shuvroroy/filament-spatie-laravel-health

This package can store health check results in various ways. When using the EloquentHealthResultStore the check results will be stored in the database. To create the health_check_result_history_items table, you must create and run the migration.

php artisan vendor:publish --tag="health-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --tag="filament-spatie-health-config"

This is the contents of the published config file:

return [

    /*
    |--------------------------------------------------------------------------
    | Pages
    |--------------------------------------------------------------------------
    |
    | This is the configuration for the general appearance of the page
    | in admin panel.
    |
    */

    'pages' => [
        'health' => \ShuvroRoy\FilamentSpatieLaravelHealth\Pages\HealthCheckResults::class
    ],

];

Usage

This package will automatically register the HealthCheckResults. You'll be able to see it when you visit your Filament admin panel.

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Monitor the health of a Laravel application

License:MIT License


Languages

Language:PHP 61.7%Language:Blade 35.2%Language:JavaScript 2.7%Language:CSS 0.5%