route = $route; parent::__construct($realm); } /** * Call * This method will check if the requested route needs authentication. */ public function call() { if(strpos($this->app->request()->getPathInfo(), $this->route) !== false) { parent::call(); return; } $this->next->call(); } }