定制 servitorhq/nova-servitor-monitor-card 二次开发

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

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

servitorhq/nova-servitor-monitor-card

Composer 安装命令:

composer require servitorhq/nova-servitor-monitor-card

包简介

Simple card for Laravel Nova to show your website/monitor stats from Servitor.io

README 文档

README

Simple card for Laravel Nova to show your website/monitor stats from Servitor.io

Servitor Website Card

Installation

First you should require this package in your composer.json file, you can do this be executing the following command:

composer require servitorhq/nova-servitor-monitor-card

After that you should add the following details to your config/services.php file:

 'nova_servitor_cards' => [
        'api_key'   => env('SERVITOR_API_KEY'),
    ],

And finally, add the SERVITOR_API_KEY value to your .env file. Your api key can be found here.

Usage

After that you need to add the card in either your NovaServiceProvider.php file or a resource. To show it on your dashboard you should add it to your service provider like so:

   /**
     * Get the cards that should be displayed on the Nova dashboard.
     *
     * @return array
     */
    protected function cards()
    {
        return [
            (new NovaServitorMonitorCard())->setMonitor('servitor.io'),
        ];
    }

Do not forget to set the desired website using ->setMonitor('mydomain.tld').

Please note: mydomain.tld should be a valid monitor on Servitor.io. If you don't have an account yet you can register here for free. 😄

Bugs / Issues / Ideas

Please create an issue using the issue tracker or drop us an email.

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-08-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固