/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $polls = Poll::paginate(15); return view('poll.latest', compact('polls')); }
public function polls() { $polls = Poll::paginate(20); return view('admin.polls', compact('polls')); }
/** * List all the existing polls, with pagination. * @return mixed */ public function index() { $polls = Poll::paginate(10); $this->checkPagination($polls); return View::make('polls.index')->with('polls', $polls); }