norman-huth/nova-watch-card

A card for Laravel Nova, which checks whether an update is available with NovaWat.ch.

v1.0.1 2023-11-13 19:55 UTC

This package is auto-updated.

Last update: 2024-10-13 21:53:55 UTC


README

A card for Laravel Nova, which checks whether an update is available with NovaWat.ch.

Preview

Installation

composer require norman-huth/nova-watch-card

Usage

Basic usage.

    public function cards(): array
    {
        return [
            new \NormanHuth\NovaWatchCard\NovaWatchCard(),
        ];
    }

Check Specific Version

    public function cards(): array
    {
        return [
            new \NormanHuth\NovaWatchCard\NovaWatchCard('4.29.0'),
        ];
    }

Add A Heading

    public function cards(): array
    {
        return [
            new \NormanHuth\NovaWatchCard\NovaWatchCard()
                ->setHeading('Customer 3'),
        ];
    }

Optional: Publish Translations

php artisan vendor:publish --tag=nova-watch-card-translations