view src/Generator/Model/snippets/belongs_to_many_relation.stub @ 42:62953a663acc ls_dev_2025_09

changes for stubs around the base controller and filters, aswell as pagination
author luka
date Thu, 12 Nov 2026 21:17:11 -0500
parents 827efbf4d73c
children
line wrap: on
line source


public function {{relationName}}()
{
    return $this->belongsToMany({{relatedModel}}::class, '{{pivotTable}}', '{{foreignPivotKey}}', '{{relatedPivotKey}}');
}