public function attributes() { $createRequest = new CreateStudentCategoryRequest(); return $createRequest->attributes(); }
public function postStudentCategoryNew(CreateStudentCategoryRequest $request) { $this->authorize('add_edit_student_category'); return $this->printPartial(view('students::partials.student_category', ['student_category' => $this->studentRepository->createStudentCategory($request->all())]), trans('students::student_category.student_category_created')); }