定制 ncpd/nova-metabase 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ncpd/nova-metabase

最新稳定版本:1.0.1

Composer 安装命令:

composer require ncpd/nova-metabase

包简介

A Laravel Nova card.

README 文档

README

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.

Installation

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.

Usage

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.

统计信息

  • 总下载量: 35
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-06