Skip to content

Instantly share code, notes, and snippets.

@petehouston
Created May 15, 2015 06:52
Show Gist options
  • Save petehouston/ff545bad435ca5df8d02 to your computer and use it in GitHub Desktop.
Save petehouston/ff545bad435ca5df8d02 to your computer and use it in GitHub Desktop.
Name the VerifyCsrfToken
class Kernel extends HttpKernel {
/**
* The application's global HTTP middleware stack.
*
* @var array
*/
protected $middleware = [
'Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode',
'Illuminate\Cookie\Middleware\EncryptCookies',
'Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse',
'Illuminate\Session\Middleware\StartSession',
'Illuminate\View\Middleware\ShareErrorsFromSession',
];
/**
* The application's route middleware.
*
* @var array
*/
protected $routeMiddleware = [
'csrf' => 'App\Http\Middleware\VerifyCsrfToken',
'auth' => 'App\Http\Middleware\Authenticate',
'admin' => 'App\Http\Middleware\VerifyAdmin',
'auth.basic' => 'Illuminate\Auth\Middleware\AuthenticateWithBasicAuth',
'guest' => 'App\Http\Middleware\RedirectIfAuthenticated',
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment