codebykyle / nova-multiple-dashboard

Support for multiple custom dashboards in Laravel Nova

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for multiple custom dashboards in Laravel Nova

Latest Version on Packagist Quality Score Total Downloads

You can now add multiple custom dashboards in Laravel Nova.

Whether you want to group some cards together, have different dashboards visible depending on the logged in user, or want to provide a dashboard with your tool, Multiple Dashboards allows you to do this.

Multiple Dashboard Example

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require alexbowers/nova-multiple-dashboard

Usage

There is now a php artisan nova:dashboard <name> command exposed via the CLI.

If you run this, you'll get a App/Nova/Dashboards directory created, which will house your custom dashboards.

Dashboards have a public $order variable you can use to set the order they appear in the navbar. See the Dashboard class for more.

If you are another package creating a nova dashboard, you will need to register it using:

\AlexBowers\MultipleDashboard\DashboardNova::registerDashboards(new \Your\Dashboard\Here);

You can register multiple at once by passing through to the DashboardNova::registerDashboards function.

Security

If you discover any security related issues, please email bowersbros@gmail.com instead of using the issue tracker.

Credits

License

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

About

Support for multiple custom dashboards in Laravel Nova

License:MIT License


Languages

Language:PHP 69.2%Language:HTML 20.0%Language:Vue 6.4%Language:JavaScript 4.4%Language:CSS 0.1%