LaravelPackages.net
Acme Inc.
Toggle sidebar
digital-creative/value-widget

A basic widget for laravel nova-dashboard.

46.602
2
v1.0.2
About digital-creative/value-widget

digital-creative/value-widget is a Laravel package for a basic widget for laravel nova-dashboard.. It currently has 2 GitHub stars and 46.602 downloads on Packagist (latest version v1.0.2). Install it with composer require digital-creative/value-widget. Discover more Laravel packages by digital-creative or browse all Laravel packages to compare alternatives.

Last updated

Nova Value Widget

Latest Version on Packagist Total Downloads License

Nova Welcome Card in Action

A simple widget for laravel Nova Dashboard.

Installation

You can install the package via composer:

composer require digital-creative/value-widget

Basic Usage

use DigitalCreative\NovaDashboard\Filters;
use DigitalCreative\ValueWidget\ValueWidget;
use Laravel\Nova\Http\Requests\NovaRequest;

class MyWidget extends ValueWidget
{
    public function configure(NovaRequest $request): void
    {
        $this->icon('<svg></svg> or heroicons name');
        $this->title('My Widget');
        $this->textColor(dark: '#845adf', light: '#845adf');
        $this->backgroundColor('#845adf4f');
    }

    public function value(Filters $filters): mixed
    {
      //
    }
}

⭐️ Show Your Support

Please give a ⭐️ if this project helped you!

Other Packages You Might Like

License

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

Star History Chart