public function authorize() { $id = $this->route('lesson'); return Lesson::where('id', $id)->exists(); }