Ejemplo n.º 1
0
 public function index(Request $request)
 {
     return response(Ticket::paginate(50), 200);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index(Request $request)
 {
     $limit = $request->input('limit', 50);
     $tickets = Ticket::paginate($limit);
     return $this->respondPagination($tickets, ['tickets' => $this->ticketTransformer->transformCollection($tickets->all())]);
 }
Ejemplo n.º 3
0
 public function get()
 {
     $tickets = Ticket::paginate(env('PAGINATION_MAX'));
     return $tickets;
 }