public function postStudentNew(CreateStudentRequest $request) { $this->authorize('create_student'); $student = $this->studentRepository->createStudent($request->all()); return $this->printRedirect(route('student.details.edit', $student->id)); }
public function attributes() { $createRequest = new CreateStudentRequest(); return $createRequest->attributes(); }