GithubHelp home page GithubHelp logo

stepanenko3 / nova-health Goto Github PK

View Code? Open in Web Editor NEW
9.0 3.0 0.0 530 KB

Laravel Nova tool for checking healthy of your Laravel app

License: MIT License

PHP 40.61% JavaScript 8.67% Vue 50.49% CSS 0.23%
laravel laravel-nova nova

nova-health's Introduction

Nova Health

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.

nova-health's People

Contributors

stepanenko3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nova-health's Issues

Database Migration Issue

I have install package with Nova 4.32 today. Its give table missing error while with "php artisan migrate", its give nothing to migrate.

Refer screenshot for more details.

Screenshot from 2024-02-01 19-41-54

Is this still up to date

Is this still up to date and working with Nova 4 and Laravel 10. I am getting an error message that just says Error and nothing else.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.