Skip to content

A laravel middleware to protect against unverified webhooks from 3rd party services.

License

Notifications You must be signed in to change notification settings

clarkeash/shield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

64a267a · Oct 15, 2017

History

29 Commits
Oct 14, 2017
Oct 14, 2017
Oct 14, 2017
Jul 22, 2017
Jul 22, 2017
Jul 22, 2017
Jul 22, 2017
Oct 15, 2017
Oct 8, 2017
Oct 8, 2017
Jul 22, 2017

Repository files navigation

Project Moved

This project has moved to https://github.com/laravel-shield/shield.

I am still happy for your contributions please read the guide here: http://laravel-shield.com/contributing




Shield

Shield is a laravel middleware to protect against unverified webhooks from 3rd party services.

Installation

You can pull in the package using composer:

$ composer require clarkeash/shield

Publish the package configuration:

$ php artisan vendor:publish --tag=config

Usage

Create your webhook route in routes/api.php and add the middleware like so:

Route::middleware('shield:github')->post('/hooks/github', 'HooksController@github');

The name after shield: is the name set in config/shield.php in the enabled section.

Services

  • GitHub
  • GitLab
  • Stripe
  • Zapier

Feel free to submit a PR to support other services.