Пример #1
0
 public function attributes()
 {
     $createRequest = new CreateClassRequest();
     return $createRequest->attributes();
 }
Пример #2
0
 public function postGradeClassNew(CreateClassRequest $request, $gradeId)
 {
     $this->authorize('add_edit_class');
     $class = $this->classRepository->createClass($request->all(), $gradeId);
     return $this->printPartial(view('classes::partials.class', ['grade' => $this->classRepository->findGrade($gradeId), 'class' => $class]), 'Class Created');
 }