public function edit($userId) { //Verify the user can access this user record $user = User::findWithPermission($userId); $profileData = $this->profileRepo->getUserProfile($userId); $skills = $this->profileSkillsRepository->getSelectArray(); return \View::make('account.profile.edit')->with('profileData', $profileData)->with('userId', $userId)->with('skills', $skills)->with('user', $user); }