dev-master
9999999-devPackage that handles subscribing, deleting, and firing REST Hooks.
MIT
The Requires
The Development Requires
by Seyong Cho
laravel package
Wallogit.com
2017 © Pedro Peláez
Package that handles subscribing, deleting, and firing REST Hooks.
Package that handles subscribing, deleting, and firing REST Hooks., (*1)
composer require se468/laravel-rest-hooks php artisan migrate
POST /api/hooks
with data, (*2)
data:
{
"target_url": "https://rest-hook-target.com/<unique_path>", //Your Hook URL
"event": "user_created" //Your Hook Event
}
Will create a new RestHook and store it., (*3)
DELETE /api/hooks/{id}
Will delete RestHook with that id., (*4)
$data = [
'foo' => 'bar'
];
$resthook = RestHook::find(1);
$resthook->fire($data);
Package that handles subscribing, deleting, and firing REST Hooks.
MIT
laravel package