samfelgar/metabase-dashboard 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

samfelgar/metabase-dashboard

最新稳定版本:2.0.0

Composer 安装命令:

composer require samfelgar/metabase-dashboard

包简介

Laravel Nova tool for embedding Metabase dashboards

README 文档

README

This packages provides a tool for embedding Metabase dashboards in your Laravel Nova application.

Install

Via Composer

composer require samfelgar/metabase-dashboard

Usage

First, you'll need a Samfelgar\MetabaseDashboard\DataTransferObjects\Dashboard instance. It receives four parameters: url, secret, resource and params.

PRO TIP: It's not advisable to keep secrets in your codebase. You can create a config file pointing to an environment variable and access it with config('your-config-file.secret').

$dashboard = new \Samfelgar\MetabaseDashboard\DataTransferObjects\Dashboard(
    'https://example.com',
    'your-secret',
    1, // resource id
    [
    'param' => 'value'
    ]
);

Then, on your App\Providers\NovaServiceProvider, you can register the tool:

IMPORTANT: You must pass a unique identifier as the first parameter, or else you may experience some weird behavior.

public function tools(): array
{
    return [
        (new \Samfelgar\MetabaseDashboard\MetabaseDashboard('uniqueIdentifier', $dashboard))
            ->label('Awesome Label')
            ->title('Awesome Title'),
    ];
}

TIP: You can instantiate more than one dashboard, just be sure to define a unique identifier for each of them.

Contributing

All contributions are welcome! Please open a PR.

Security

If you discover any security related issues, please email samfelgar@gmail.com or open an issue.

License

The MIT License (MIT).

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固