mirror of
https://github.com/nihonbuzz/nihonbuzz-academy.git
synced 2026-01-26 13:32:07 +07:00
feat: implement Phase 7 (Course Player v2, Furigana, XP System, Integrated Vocab)
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user