lessons()->filter()->get(); } public function getGrades(): Collection { return Grade::all(); } public function create(array $data): Lesson { return Lesson::create($data); } public function update(Model $model, array $data): Lesson { $model->update($data); return $model; } public function delete($model): void { $model->delete(); } }