From c4fb7b225e599a3c739ca09c49309089aec2589b Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 27 Jun 2023 10:10:54 +0200 Subject: [PATCH] Use `static` instead of `tenancy()` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Samuel Ć tancl --- src/Database/Concerns/DealsWithModels.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Database/Concerns/DealsWithModels.php b/src/Database/Concerns/DealsWithModels.php index 4bcfa873..3929222c 100644 --- a/src/Database/Concerns/DealsWithModels.php +++ b/src/Database/Concerns/DealsWithModels.php @@ -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