1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-05-06 15:24:03 +00:00

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.
This commit is contained in:
lukinovec 2026-04-28 12:50:31 +02:00
parent e81e6ac651
commit 4764b99c8f

View file

@ -62,9 +62,9 @@ trait HasPending
public static function createPending(array $attributes = []): Model&Tenant public static function createPending(array $attributes = []): Model&Tenant
{ {
return static::create(array_merge( return static::create(array_merge(
['pending_since' => now()->timestamp],
static::getPendingAttributes($attributes), static::getPendingAttributes($attributes),
$attributes $attributes,
['pending_since' => now()->timestamp],
)); ));
} }