Commit ec9edec9 authored by Taylor Otwell's avatar Taylor Otwell

Rename CSRF middleware.

parent 2542829d
......@@ -17,7 +17,7 @@ class Kernel extends HttpKernel {
'Illuminate\Session\Middleware\ReadSession',
'Illuminate\Session\Middleware\WriteSession',
'Illuminate\View\Middleware\ShareErrorsFromSession',
'App\Http\Middleware\ValidateCsrfToken',
'App\Http\Middleware\CsrfTokenIsValid',
];
/**
......
......@@ -4,7 +4,7 @@ use Closure;
use Illuminate\Contracts\Routing\Middleware;
use Illuminate\Session\TokenMismatchException;
class ValidateCsrfToken implements Middleware {
class CsrfTokenIsValid implements Middleware {
/**
* Handle an incoming request.
......
......@@ -24,7 +24,7 @@ class RouteServiceProvider extends ServiceProvider {
protected $middleware = [
'auth' => 'App\Http\Middleware\Authenticated',
'auth.basic' => 'App\Http\Middleware\AuthenticatedWithBasicAuth',
'csrf' => 'App\Http\Middleware\VerifyCsrfToken',
'csrf' => 'App\Http\Middleware\CsrfTokenIsValid',
'guest' => 'App\Http\Middleware\IsGuest',
];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment