alexbowers / nova-multiple-dashboard
Support for multiple custom dashboards in Laravel Nova
Installs: 57 238
Dependents: 0
Suggesters: 0
Security: 0
Stars: 36
Watchers: 2
Forks: 5
Open Issues: 5
Requires
- php: >=7.1.0
Requires (Dev)
- phpstan/phpstan: ^0.10.3
This package is auto-updated.
Last update: 2020-02-04 22:51:53 UTC
README
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.
Deprecated
This is now covered in Nova 2.1.0+ so does not need a package for it.
See documentation
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.