auth = $auth; $this->config = $config; $this->redirect = $redirect; } /** * @return Response */ public function index(): Response { return $this->redirect->to($this->auth->user() ? $this->config->get('home_site') : 'login'); } }