/** * GET: / * * @return view(home.index) */ public function getIndex() { $user = Auth::user(); $profiles = $this->profileRepository->getFromUser($user); $providers = $this->providerRepository->getFromUserByProfile($user); return view('home.index', ['profiles' => $profiles, 'providers' => $providers]); }
/** * GET: /profiles * * @return view(profiles.index) */ public function getIndex() { $user = Auth::user(); $profiles = $this->profileRepository->getFromUser($user); return view('profiles.index', ['profiles' => $profiles]); }