Skip to content

A simple widget for laravel nova-dashboard

License

Notifications You must be signed in to change notification settings

SLASH2NL/value-widget

 
 

Repository files navigation

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.

About

A simple widget for laravel nova-dashboard

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 35.7%
  • Vue 33.3%
  • JavaScript 29.9%
  • CSS 1.1%