public function attributes() { $createRequest = new CreateAddressRequest(); return $createRequest->attributes(); }
public function postGuardianAddressNew(CreateAddressRequest $request, $studentId) { $this->authorize('edit_guardian_contact_details'); $address = $this->guardianRepository->createAddress($request->all(), $studentId); return $this->printPartial(view('students::partials.guardian_address', ['guardian' => $this->guardianRepository->findGuardian($studentId), 'address' => $address]), trans('students::address.address_created')); }
public function postStudentAddressNew(CreateAddressRequest $request, $studentId) { $this->authorize('edit_student_contact_details'); $address = $this->studentRepository->createAddress($request->all(), $studentId); return $this->printPartial(view('students::partials.student_address', ['student' => $this->studentRepository->findStudent($studentId), 'address' => $address]), trans('students::address.address_created')); }