Пример #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index(UserRepository $repository)
 {
     $user = $this->currentUser;
     $friends = $repository->findByIdWithFriends($user->id);
     return view('friends.index', compact('friends', 'user'));
 }