tdcreative/cockpit-php

PHP中Cockpit包装器包。

此包的规范仓库似乎已不存在,因此该包已被冻结。

0.0.9 2017-12-17 00:33 UTC

This package is not auto-updated.

Last update: 2021-02-06 08:11:29 UTC


README

Laravel的Cockpit PHP包装器

安装

  1. 使用composer拉取:composer require tdcreative/cockpit-php
  2. Cockpit\ServiceProvider::class添加到您的config/app.php
  3. 将Cockpit外观添加到您的config/app.php'Cockpit' => Cockpit\Facades\Cockpit::class
  4. 如果使用Laravel默认的数据库缓存,请确保运行php artisan cache:table然后php artisan migrate
  5. 运行php artisan vendor:publish --tag=configcockpit.php复制到您的config/目录。将您的资源添加到数组中。
  6. 在您的Cockpit CMS中,注册一个webhook到/webhooks/cockpit/collections/save collections.save.after事件。