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.

Return Value

void

void initializeHasPending()

Initialize the trait.

Return Value

void

bool pending()

Determine if the model instance is in a pending state.

Return Value

bool

static Model&Tenant createPending(array $attributes = [])

Create a pending tenant.

Parameters

array $attributes

Return Value

Model&Tenant

static Model&Tenant pullPending()

Pull a pending tenant.

Return Value

Model&Tenant

static Tenant|null pullPendingFromPool(bool $firstOrCreate = false)

Try to pull a tenant from the pool of pending tenants.

Parameters

bool $firstOrCreate

Return Value

Tenant|null

static Builder withPending(bool $withPending = true)

No description

Parameters

bool $withPending

Return Value

Builder

static Builder onlyPending()

No description

Return Value

Builder

static Builder withoutPending()

No description

Return Value

Builder