承接 stepanenko3/nova-health 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

stepanenko3/nova-health

最新稳定版本:v1.2.3

Composer 安装命令:

composer require stepanenko3/nova-health

包简介

Laravel Nova tool for checking healthy of your Laravel app

README 文档

README

Latest Version on Packagist Total Downloads License

screenshot of tool

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

  1. Configure spatie/laravel-health using instructions before continue installing
  2. 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

screenshot of tool screenshot of tool

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.

统计信息

  • 总下载量: 71.12k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 13
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 13
  • Watchers: 1
  • Forks: 2
  • 开发语言: Vue

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-05-08