Include CSRF middleware in base install for easy override / whitelist.

This makes it easy to skip CSRF verification for things like web hooks
and such from GitHub / Stripe.
This commit is contained in:
Taylor Otwell
2015-01-26 19:32:22 -06:00
parent 9b9c12fcde
commit c3e3d9dc4b
2 changed files with 21 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
<?php namespace App\Http\Middleware;
use Closure;
use Illuminate\Foundation\Http\Middleware\VerifyCsrfToken as BaseVerifier;
class VerifyCsrfToken extends BaseVerifier {
/**
* Handle an incoming request.
*
* @param \Illuminate\Http\Request $request
* @param \Closure $next
* @return mixed
*/
public function handle($request, Closure $next)
{
return parent::handle($request, $next);
}
}