Excluding Routes from the CSRF Middleware in Laravel 5.1

Posted on July 07, 2015 | By Matt Stauffer

Warning: This post is over a year old. I don't always update old posts with new information, so some of this information may be out of date.

Whoops! I missed a feature from my Laravel 5.1 review!

It's now super easy to exclude specific routes from your CSRF middleware:

// app/Http/Middleware/VerifyCsrfToken
protected $except = [

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

Comments? I'm @stauffermatt on Twitter

Tags: laravel  •  laravel 5.1