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())]); }
public function get() { $tickets = Ticket::paginate(env('PAGINATION_MAX')); return $tickets; }