[ \Illuminate\Routing\Middleware\SubstituteBindings::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, ] ]; /** * The application's route middleware. * * These middleware may be assigned to groups or used individually. * * @var array */ protected $routeMiddleware = [ 'auth' => \App\Http\Middleware\Authenticate::class ]; }