/** * Display a listing of the Batch. * GET|HEAD /batches * * @return Response */ public function index() { $batches = $this->batchRepository->all(); return $this->sendResponse($batches->toArray(), "Batches retrieved successfully"); }