From 4764b99c8f4543f5021f0265663955fab382d16a Mon Sep 17 00:00:00 2001 From: lukinovec Date: Tue, 28 Apr 2026 12:50:31 +0200 Subject: [PATCH] Merge pending_since into the other attributes during pending tenant creation Ensures that createPending always creates tenants with pending_since set to the current timestamp. --- src/Database/Concerns/HasPending.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Database/Concerns/HasPending.php b/src/Database/Concerns/HasPending.php index 03fdc26b..04fcccc1 100644 --- a/src/Database/Concerns/HasPending.php +++ b/src/Database/Concerns/HasPending.php @@ -62,9 +62,9 @@ trait HasPending public static function createPending(array $attributes = []): Model&Tenant { return static::create(array_merge( - ['pending_since' => now()->timestamp], static::getPendingAttributes($attributes), - $attributes + $attributes, + ['pending_since' => now()->timestamp], )); }