Whoops! I missed a feature from my 5.1 review!

It’s now super easy to exclude specific from your :

// app/Http/Middleware/VerifyCsrfToken
protected $except = [
 'webhook/*'
];

Learn more about how, and why, it works at Laravel News’: Excluding Routes from the CSRF Middleware.



Source link https://mattstauffer.com/blog/-routes-from-the-csrf-middleware-in-laravel-5.1

LEAVE A REPLY

Please enter your comment!
Please enter your name here