public function postGuardianNew(CreateGuardianRequest $request) { $this->authorize('create_guardian'); $guardian = $this->guardianRepository->createGuardian($request->all()); return $this->printJson(true, ['guardian' => ['id' => $guardian->id, 'name' => $guardian->name]]); }
public function attributes() { $createRequest = new CreateGuardianRequest(); return $createRequest->attributes(); }