/** * Display a listing of the resource. * * @return Response */ public function index() { if (Auth::guest()) { return Redirect::home(); } // $statuses = $this->statusRepository->getAllForUser(Auth::user()); $statuses = $this->statusRepository->getFeedForUser(Auth::user()); // dd(compact($statuses)); return View::make('statuses.index', compact('statuses'))->withUser(Auth::user()); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $statuses = $this->statusRepository->getFeedForUser(Auth::user()); return View::make('statuses.index', compact('statuses')); }
/** * Display a listing of the resource. * * @param StatusRepository $repository * @return Response */ public function index(StatusRepository $repository) { $statuses = $repository->getFeedForUser(Auth::user()); return view('statuses.index')->withStatuses($statuses); }