ncpd/nova-metabase is a Laravel package for a laravel nova card..
It currently has 1 GitHub stars and 36 downloads on Packagist (latest version 1.0.1).
Install it with composer require ncpd/nova-metabase.
Discover more Laravel packages by ncpd
or browse all Laravel packages to compare alternatives.
Last updated
Nova Metabase is a package for Laravel Nova that adds the ability to display Metabase dashboards within a Nova Card by framing them in an iFrame. This powerful feature enables the display of various statistics directly within your Nova dashboard.
To install the Nova Metabase package into your Laravel Nova application, you can use Composer with the following command:
composer require ncpd/nova-metabase
After running this command, Composer will download and install the ncpd/nova-metabase package into your Laravel Nova application.
To publish the configuration file, run the following command:
php artisan vendor:publish --provider=Ncpd\Metabase\CardServiceProvider
That will publish a configuration file where you can specify your Metabase URL and secret key.
To utilize the Nova Metabase card, you need to create an instance of the Metabase class with the id of your desired Metabase dashboard and any necessary parameters.
use Ncpd\Metabase\Metabase;
// Inside your Nova resource...
public function cards(Request $request) {
return [
(new Metabase(1))->width('full'), /* Replace 1 with your Metabase dashboard id */
];
}
In the example above, we are creating a new instance of the Metabase class with dashboard id as 1. The width('full') sets the width to the full size. Replace 1 with the id of your actual Metabase dashboard.