mirror of
https://github.com/archtechx/tenancy.git
synced 2026-05-06 14:24:04 +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:
parent
e81e6ac651
commit
4764b99c8f
1 changed files with 2 additions and 2 deletions
|
|
@ -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],
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue