定制 zoxta/nova-cloudflare-card 二次开发

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

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

zoxta/nova-cloudflare-card

Composer 安装命令:

composer require zoxta/nova-cloudflare-card

包简介

Purge your CloudFlare's cache in two clicks from a Laravel Nova dashboard card.

README 文档

README

Latest Version on Packagist Total Downloads

Purge your Cloudflare's cache in two clicks from a Laravel Nova dashboard card.

nova-cloudflare-card

Installation

You can install the package in to a Laravel app that uses Laravel Nova via composer:

composer require zoxta/nova-cloudflare-card

Once the package is installed, you need to add the card to your NovaServiceProvider.php file:

// in app/Providers/NovaServiceProvder.php

// ...

public function cards()
{
    return [
        // ...
        new \Zoxta\NovaCloudflareCard\NovaCloudflareCard(),
    ];
}

Config

You need to add your Cloudflare's credentials to config/services.php file as shown:

    'cloudflare' => [
        'email'   => env('CLOUDFLARE_EMAIL', ''), # your cloudflare email
        'key'     => env('CLOUDFLARE_KEY', ''), # your cloudflare api key, from https://dash.cloudflare.com/profile
        'zone_id' => env('CLOUDFLARE_ZONE_ID', ''), # your domain's zone id, from the domain overview page
        'bearer' => env('CLOUDFLARE_BEARER', false), # if present use Authorization Bearer token instead of X-Auth-Key Header, use X-Auth if acc token, and Bearer if scoped token
    ],

nova-cloudflare-card-config When creating an API key/token if you decide to use the account's Global API Key, you need to set the CLOUDFLARE_KEY env variable, but if you decide to use an API Token, which you can scope to specific zones, you need to set the CLOUDFLARE_BEARER env variable

Usage

A new card will appear on your dashboard giving you the option to purge your Cloudflare's cache in two clicks whenever you need.

Credits

License

This card is released under the MIT License (MIT). Please see the included license file for more information.

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 6
  • 开发语言: Vue

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固