/** * Create a new VerifyCsrfToken instance. * * @param Encrypter $encrypter * @param Redirector $redirector * @param MessageBag $messages */ public function __construct(Encrypter $encrypter, Redirector $redirector, MessageBag $messages, Route $route) { $this->redirector = $redirector; $this->messages = $messages; $this->route = $route; parent::__construct($encrypter); }
/** * Create a new middleware instance. * * @param \Illuminate\Foundation\Application $app * @param \Illuminate\Contracts\Encryption\Encrypter $encrypter * * @return void */ public function __construct(Application $app, Encrypter $encrypter) { $this->except[] = 'api.filemanager'; parent::__construct($app, $encrypter); }