davidsneal/trigger
Composer 安装命令:
composer require davidsneal/trigger
包简介
A simple URL Trigger for Statamic v3.
关键字:
README 文档
README
Allows you to make a simple POST request to a configured URL. Particularly helpful for deployment triggers.
Installation
composer require davidsneal/trigger
Copy dist/js/cp.js to your public folder public/vendor/davidsneal/trigger/js/cp.js
Sorry, I've yet to figure out a better way to do this ^^
Configuration
Set the URL that the POST request should be made to in your .env via TRIGGER_FIRE_URL
(optional) Publish Trigger's default configuration and language files by running php artisan vendor:publish --provider="Davidsneal\Trigger\ServiceProvider"
You could require Trigger for something different to triggering a deployment, all text displayed by Trigger is customisable.
Usage
You can access the Trigger from the CP menu under Tools. Use the published language file to change the item name, and config file to change the icon, should you wish.
This is the default component view, again you can change every item of text, including the confirmation modal.
Permissions
Trigger adds a permission you can assign to groups as required.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-04-06



