/** * Display a listing of the resource. * * @return Response */ public function index(Request $request) { $limit = $request->query->get('limit', 15); return $this->repository->paginate($limit); //return $this->repository->skipPresenter()->all(); //return $this->repository->all(); }
/** * Display a listing of the resource. * * @return Response */ public function index(Request $request) { if ($request->query->get('paginate') === 'false') { return $this->repository->all(); } return $this->repository->paginate($request->query->get('limit')); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index(Request $request) { try { $limit = $request->query->get('limit', 15); return $this->repository->paginate($limit); } catch (\Exception $e) { return $this->erroMsgm('Ocorreu um erro ao listar os clientes.'); } }
public function all($limit) { return $this->repository->paginate($limit); }
public function paginate($limit = null, $columns = array('*')) { $this->setPresenter(); return $this->repository->paginate($limit, $columns); }
public function index(Request $request) { $limit = $request->query->get('limit', 15); $rtrn = $this->repository->paginate($limit); return $rtrn; }
/** * Display a listing of the resource. * * @return Response */ public function index(Request $request) { //return $this->repository->all(); $limit = $request->query->get("limit", 15); return $this->repository->paginate($limit); }