Allows you to make a simple POST
request to a configured URL. Particularly helpful for deployment triggers.
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 ^^
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.
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.
Trigger adds a permission you can assign to groups as required.