X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=app%2FModels%2FTechnique.php;h=256afc06ea6abe051e47fa08ae39b421e43950f9;hb=72d6c25d3b1a6d79843d5673ba78804dd442ae39;hp=1a54a0e1b29767f6f7ce29d1efc485ec1b17328d;hpb=7e8555cfc96dcd364ca4fe9895e51af1bb04b546;p=alttp.git diff --git a/app/Models/Technique.php b/app/Models/Technique.php index 1a54a0e..256afc0 100644 --- a/app/Models/Technique.php +++ b/app/Models/Technique.php @@ -17,7 +17,16 @@ class Technique extends Model ->using(TechniqueChapter::class); } + public function translations() { + return $this->hasMany(TechniqueTranslation::class); + } + protected $casts = [ 'index' => 'boolean', ]; + + protected $with = [ + 'translations', + ]; + }