public function getLastLessonId($id) { return Lesson::where('user_id', '=', $id)->latest()->first()->id; }