コード例 #1
0
 /**
  * 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());
 }
コード例 #2
0
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     $statuses = $this->statusRepository->getFeedForUser(Auth::user());
     return View::make('statuses.index', compact('statuses'));
 }
コード例 #3
0
 /**
  * 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);
 }