Пример #1
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index(FeedRepository $feedRepository)
 {
     $user = $this->currentUser;
     $feeds = $feedRepository->getPublishedByUserAndFriends($user);
     $friendsUserIds[] = $user->id;
     $feedsCount = Feed::getTotalCountFeedsForUser($friendsUserIds);
     return view('feeds.index', compact('user', 'feeds', 'feedsCount'));
 }