/** * 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')); }
/** * Search all clients * @return json */ public function all() { try { return $this->repository->all(); } catch (\Exception $e) { return ["error" => true, "message" => $e->getMessage()]; } }
public function all() { try { return $this->repository->all(); } catch (Exception $e) { return ['error' => true, 'message' => $e->getMessage()]; } }
/** * Display a listing of the resource. * * @return Response */ public function index() { return $this->repository->all(); //return $this->repository->skipPresenter()->all(); }
public function all() { return $this->repository->all(); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { $res = $this->repository->all(); return $res['data']; }
public function allNoPaginate() { return $this->repository->all(); }
public function all() { $this->setPresenter(); return $this->repository->all(); }
/** * Display a listing of the resource. * * @param ClientRepository $repository * @return Response */ public function index(ClientRepository $repository) { return $this->repository->all(); }
/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function index() { //return Client::all(); return $this->repository->all(); }