/**
  * 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'));
 }
Exemplo n.º 2
0
 /**
  * Search all clients
  * @return json
  */
 public function all()
 {
     try {
         return $this->repository->all();
     } catch (\Exception $e) {
         return ["error" => true, "message" => $e->getMessage()];
     }
 }
Exemplo n.º 3
0
 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();
 }
Exemplo n.º 5
0
 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();
 }
Exemplo n.º 8
0
 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();
 }
Exemplo n.º 10
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     //return Client::all();
     return $this->repository->all();
 }