public function index() { if (Utils::getSuperUser()) { $users = User::getAllUser(); return View::make('admin')->with("users", $users); } else { Utils::isLogged(); $projects = Projects::getAllProjects(); return $this->returnView($projects, 1, ""); } }