stepanenko3 / nova-health
Laravel Nova tool for checking healthy of your Laravel app
Installs: 41 193
Dependents: 0
Suggesters: 0
Security: 0
Stars: 11
Watchers: 3
Forks: 2
Open Issues: 3
Language:Vue
Requires
- php: >=8.0
- laravel/nova: ^4.0
- spatie/cpu-load-health-check: ^1.0
- spatie/laravel-health: ^1.9
- spatie/ssl-certificate: ^2.6
Requires (Dev)
- phpstan/phpstan: ^1.10
- tightenco/duster: ^2.7
This package is auto-updated.
Last update: 2024-11-11 12:23:38 UTC
README
Description
Laravel Nova tool for checking healthy of your Laravel app based on https://github.com/spatie/laravel-health
Requirements
php: >=8.0
laravel/nova: ^4.0
Installation
You can install the nova tool in to a Laravel app that uses Nova via composer:
composer require stepanenko3/nova-health
Configure
- Configure spatie/laravel-health using instructions before continue installing
- Add your health checks usgin spatie/laravel-health docs
Next up, you must register the tool with Nova. This is typically done in the tools
method of the NovaServiceProvider
.
// in app/Providers/NovaServiceProvder.php // ... public function tools() { return [ // ... new \Stepanenko3\NovaHealth\NovaHealth, ]; }
Publish the config file:
php artisan vendor:publish --provider="Stepanenko3\NovaHealth\ToolServiceProvider"
Usage
Click on the "Health"
menu item in your Nova app to see the tool.
// app/Providers/AppServiceProvider.php use Spatie\Health\Facades\Health; use Stepanenko3\NovaHealth\Checks\OutdatedPackagesCheck; use Stepanenko3\NovaHealth\Checks\SslCheck; Health::checks([ SslCheck::new() ->domain('laravel.com'), SslCheck::new() ->domain('snotax.com'), OutdatedPackagesCheck::new() ->failWhenOutdatedPackagesIsHigher(1), ]);
Configuration
All the configuration is managed from a single configuration file located in config/nova-health.php
Screenshots
Credits
Contributing
Thank you for considering contributing to this package! Please create a pull request with your contributions with detailed explanation of the changes you are proposing.
License
This package is open-sourced software licensed under the MIT license.