public function __construct(Encrypter $encrypter) { $routes = ['root-upload-image-ajax']; foreach ($routes as $route) { $this->except[] = trim(route($route, [], false), '/'); } parent::__construct($encrypter); }
/** * VerifyCsrfToken constructor. * * @param \Illuminate\Contracts\Encryption\Encrypter $encrypter * @param \Illuminate\Routing\Router $router */ public function __construct(Encrypter $encrypter, Router $router) { parent::__construct($encrypter); $this->router = $router; }
public function __construct(Application $application, Encrypter $encrypter) { parent::__construct($application, $encrypter); $this->except[] = config('auto-deploy.route'); }
/** * Create a new middleware instance. * * @param \Illuminate\Contracts\Encryption\Encrypter $encrypter * @param \Orchestra\Contracts\Foundation\Foundation $foundation */ public function __construct(Encrypter $encrypter, Foundation $foundation) { $this->foundation = $foundation; parent::__construct($encrypter); }
/** * {@inheritDoc} */ public function __construct(Encrypter $encrypter, Router $router, Authentication $auth) { parent::__construct($encrypter); $this->router = $router; $this->auth = $auth; }