mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 02:54:06 +00:00
Update comments and naming
This commit is contained in:
parent
b5b0799750
commit
a9146ae00d
4 changed files with 25 additions and 25 deletions
|
|
@ -55,8 +55,8 @@ trait HasPending
|
|||
|
||||
event(new CreatingPendingTenant($tenant));
|
||||
|
||||
// Add the pending value only after creating the model
|
||||
// To ensure it's not marked as pending until finishing running the migrations, seeders, etc.
|
||||
// Update the pending_since value only after the model is created to ensure that
|
||||
// It's not marked as pending until finishing running the migrations, seeders, etc.
|
||||
$tenant->update([
|
||||
'pending_since' => now()->timestamp,
|
||||
]);
|
||||
|
|
@ -73,7 +73,7 @@ trait HasPending
|
|||
static::createPending();
|
||||
}
|
||||
|
||||
// At this point, we can guarantee a pending tenant is free and can be called
|
||||
// At this point, we can guarantee a pending tenant is available
|
||||
$tenant = static::onlyPending()->first();
|
||||
|
||||
event(new PullingPendingTenant($tenant));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue