HasPending
trait HasPending (View source)
Properties
Carbon | $pending_since |
Methods
static void
bootHasPending()
Boot the trait.
void
initializeHasPending()
Initialize the trait.
bool
pending()
Determine if the model instance is in a pending state.
static Model&Tenant
createPending(array $attributes = [])
Create a pending tenant.
static Model&Tenant
pullPending()
Pull a pending tenant.
static Tenant|null
pullPendingFromPool(bool $firstOrCreate = false)
Try to pull a tenant from the pool of pending tenants.
static Builder
withPending(bool $withPending = true)
No description
static Builder
onlyPending()
No description
static Builder
withoutPending()
No description
Details
static void
bootHasPending()
Boot the trait.
void
initializeHasPending()
Initialize the trait.
bool
pending()
Determine if the model instance is in a pending state.
static Model&Tenant
createPending(array $attributes = [])
Create a pending tenant.
static Model&Tenant
pullPending()
Pull a pending tenant.
static Tenant|null
pullPendingFromPool(bool $firstOrCreate = false)
Try to pull a tenant from the pool of pending tenants.
static Builder
withPending(bool $withPending = true)
No description
static Builder
onlyPending()
No description
static Builder
withoutPending()
No description