Пример #1
0
 public function __construct(Encrypter $encrypter)
 {
     $routes = ['root-upload-image-ajax'];
     foreach ($routes as $route) {
         $this->except[] = trim(route($route, [], false), '/');
     }
     parent::__construct($encrypter);
 }
Пример #2
0
 /**
  * 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;
 }
Пример #3
0
 public function __construct(Application $application, Encrypter $encrypter)
 {
     parent::__construct($application, $encrypter);
     $this->except[] = config('auto-deploy.route');
 }
Пример #4
0
 /**
  * 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);
 }
Пример #5
0
 /**
  * {@inheritDoc}
  */
 public function __construct(Encrypter $encrypter, Router $router, Authentication $auth)
 {
     parent::__construct($encrypter);
     $this->router = $router;
     $this->auth = $auth;
 }