Skip to content

Instantly share code, notes, and snippets.

@franzliedke
Created December 10, 2015 19:44
Show Gist options
  • Save franzliedke/c0e64745dc45eeb187ca to your computer and use it in GitHub Desktop.
Save franzliedke/c0e64745dc45eeb187ca to your computer and use it in GitHub Desktop.
Composite Middleware
<?php
use Illuminate\CompositeMiddleware;
class WebGroup extends CompositeMiddleware
{
protected $middlewares = [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
\App\Http\Middleware\VerifyCsrfToken::class,
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment