public function attributes() { $createRequest = new CreateBatchRequest(); return $createRequest->attributes(); }
public function postBatchNew(CreateBatchRequest $request) { $this->authorize('add_edit_batch'); $batch = $this->classRepository->createBatch($request->all()); return $this->printRedirect(route('batch.details.edit', $batch->id)); }