/** * Display a listing of the resource. * * @return Response */ public function index() { sleep(1); if (Request::ajax()) { $notifications = Donor::orderBy('created_at', 'desc')->get(); return View::make('notifications.dropdown', array('notifis' => $notifications)); } else { } }
/** * Display a listing of the resource. * * @return Response */ public function index() { $donors = Donor::orderBy('created_at', 'desc')->paginate($this->perPage); return View::make('donors.list', array('donors' => $donors)); }