aauth = new Aauth(); $this->config = new AauthConfig(); helper('aauth'); if (! $this->aauth->isLoggedIn()) { return service('response')->redirect('/'); } } /** * Index * * @return void */ public function index() { $data['user'] = $this->aauth->getUser(); echo view('Account/Home', $data); } }