auth = $auth; $this->config = $config; } /** * @throws HttpTemporaryRedirect */ public function index() { throw new HttpTemporaryRedirect($this->auth->user() ? $this->config->get('home_site') : 'login'); } }