mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 19:24:02 +00:00
Use static instead of tenancy()
Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
89b9e1bfd9
commit
c4fb7b225e
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ trait DealsWithModels
|
|||
*/
|
||||
public static function getTenantModels(): array
|
||||
{
|
||||
return array_filter(static::getModels(), fn (Model $model) => tenancy()->modelBelongsToTenant($model) || tenancy()->modelBelongsToTenantIndirectly($model));
|
||||
return array_filter(static::getModels(), fn (Model $model) => static::modelBelongsToTenant($model) || static::modelBelongsToTenantIndirectly($model));
|
||||
}
|
||||
|
||||
public static function modelBelongsToTenant(Model $model): bool
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue