]> git.localhorst.tv Git - alttp.git/blobdiff - app/Models/Technique.php
SMR seed codes
[alttp.git] / app / Models / Technique.php
index 1a54a0e1b29767f6f7ce29d1efc485ec1b17328d..256afc06ea6abe051e47fa08ae39b421e43950f9 100644 (file)
@@ -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',
+       ];
+
 }