->using(TechniqueChapter::class);
}
+ public function relations() {
+ return $this
+ ->belongsToMany(Technique::class, 'technique_relations', 'from_id', 'to_id')
+ ->withPivot('type')
+ ->using(TechniqueRelation::class);
+ }
+
+ public function translations() {
+ return $this->hasMany(TechniqueTranslation::class);
+ }
+
protected $casts = [
'index' => 'boolean',
];
+
+ protected $with = [
+ 'translations',
+ ];
+
}