Package that handles subscribing, deleting, and firing REST Hooks.
se468/laravel-rest-hooks is a Laravel package for package that handles subscribing, deleting, and firing rest hooks..
It currently has 1 GitHub stars and 10 downloads on Packagist.
Install it with composer require se468/laravel-rest-hooks.
Discover more Laravel packages by se468
or browse all Laravel packages to compare alternatives.
Last updated
Package that handles subscribing, deleting, and firing REST Hooks.
composer require se468/laravel-rest-hooks
php artisan migrate
POST /api/hooks
with data
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.
DELETE /api/hooks/{id}
Will delete RestHook with that id.
$data = [
'foo' => 'bar'
];
$resthook = RestHook::find(1);
$resthook->fire($data);