trait CanBeDisabled (View source)

Properties

protected bool|Closure $isDisabled

Methods

disabled(bool|Closure $condition = true)

No description

disabledOn(string|array $contexts)

No description

bool
isDisabled()

No description

bool
isEnabled()

No description

Details

CanBeDisabled disabled(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeDisabled

CanBeDisabled disabledOn(string|array $contexts)

No description

Parameters

string|array $contexts

Return Value

CanBeDisabled

bool isDisabled()

No description

Return Value

bool

bool isEnabled()

No description

Return Value

bool