route('grades.index'); }); Route::resources([ 'grades' => GradeController::class, 'subjects' => SubjectController::class, 'students' => StudentController::class, 'teachers' => TeacherController::class, 'grades.lessons' => LessonController::class, ]); Route::resource('teachers.subjects', SubjectTeacherController::class)->except('index'); Route::resource('teachers.subjects.grades', GradeTeacherController::class)->except('index', 'show'); Route::resource('grades.subjects', GradeSubjectController::class)->except('index', 'show'); Route::get('lessons/grade-list', [LessonController::class, 'gradeList'])->name('grades.lessons.grades-list');