示例#1
0
 /**
  * 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]);
 }
示例#2
0
 /**
  * GET: /profiles
  *
  * @return view(profiles.index)
  */
 public function getIndex()
 {
     $user = Auth::user();
     $profiles = $this->profileRepository->getFromUser($user);
     return view('profiles.index', ['profiles' => $profiles]);
 }