collinped/laravel-rest-hooks

Package for managing Laravel Rest Hooks for use with platforms like Zapier.

1.0.0 2020-08-31 21:45 UTC

This package is auto-updated.

Last update: 2024-11-11 09:40:23 UTC


README

Latest Version on Packagist GitHub Tests Action Status Total Downloads License

Package for managing Rest Hooks in Laravel for use with platforms such as Zapier. Built on top of spatie/laravel-webhook-server.

Installation

You can install the package via composer:

composer require collinped/laravel-rest-hooks

You can publish and run the migrations with:

php artisan vendor:publish --provider="Collinped\LaravelRestHooks\Providers\LaravelRestHooksServiceProvider" --tag="migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --provider="Collinped\LaravelRestHooks\Providers\LaravelRestHooksServiceProvider" --tag="config"

This is the contents of the published config file:

return [
];

Usage

use Collinped\LaravelRestHooks\RestHook;

$restHook = RestHook::forUser(auth()->user()->id())>find($id);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

If you discover any security related issues, please email me@collinped.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.