Mercurial > packages > magicforger
view src/Generator/Model/snippets/belongs_to_many_relation.stub @ 44:cde7e0f145fa ls_dev_2025_09
merge heads
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Thu, 12 Nov 2026 21:19:35 -0500 |
| parents | 827efbf4d73c |
| children |
line wrap: on
line source
public function {{relationName}}() { return $this->belongsToMany({{relatedModel}}::class, '{{pivotTable}}', '{{foreignPivotKey}}', '{{relatedPivotKey}}'); }
