feat: implement Phase 7 (Course Player v2, Furigana, XP System, Integrated Vocab)

This commit is contained in:
2026-01-23 18:15:51 +07:00
parent 82fe5f8a79
commit 7aa4eb89df
8 changed files with 386 additions and 73 deletions

View File

@@ -23,4 +23,9 @@ class Lesson extends Model
{
return $this->belongsTo(Module::class);
}
public function vocabularies()
{
return $this->belongsToMany(Vocabulary::class, 'lesson_vocabulary');
}
}

View File

@@ -24,4 +24,14 @@ class Vocabulary extends Model
{
return $this->hasMany(SrsReview::class);
}
public function level()
{
return $this->belongsTo(Level::class);
}
public function lessons()
{
return $this->belongsToMany(Lesson::class, 'lesson_vocabulary');
}
}