mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 11:34:03 +00:00
Rename parent model -> getRelationshipToPrimaryModel
This commit is contained in:
parent
c05262f534
commit
f4898bec2b
3 changed files with 3 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ class ParentModelScope implements Scope
|
|||
return;
|
||||
}
|
||||
|
||||
$builder->whereHas($builder->getModel()->getParentRelationshipName());
|
||||
$builder->whereHas($builder->getModel()->getRelationshipToPrimaryModel());
|
||||
}
|
||||
|
||||
public function extend(Builder $builder)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue