diff --git a/src/BelongsToTenants.php b/src/BelongsToTenants.php index 23e8ab4..40b8a2a 100644 --- a/src/BelongsToTenants.php +++ b/src/BelongsToTenants.php @@ -66,7 +66,8 @@ public function getQualifiedTenant($tenant) */ public static function allTenants() { - return static::$landlord->newQueryWithoutTenants(new static()); + $model = new static(); + return static::$landlord->newQueryWithoutTenants($model); } /**