$this->service->getAll($lesson), 'lesson' => $lesson, 'scores' => ScoreEnum::cases(), ]); } public function update(Request $request, Lesson $lesson) { $this->service->update($lesson, $request->toArray()); return redirect()->route('grades.lessons.show', [$lesson->grade, $lesson]); } }