trait CanBeHidden (View source)

Properties

protected mixed $authorization
protected bool|Closure $isHidden
protected bool|Closure $isVisible

Methods

authorize(mixed $abilities, Model|string|array|null $arguments = null)

No description

authorizeAny(string|BackedEnum|array $abilities, Model|array|null $arguments = null)

No description

array
parseAuthorizationArguments(array $arguments)

No description

hidden(bool|Closure $condition = true)

No description

visible(bool|Closure $condition = true)

No description

bool
isAuthorized()

No description

bool
isHidden()

No description

bool
isHiddenInGroup()

No description

bool
isVisible()

No description

Details

CanBeHidden authorize(mixed $abilities, Model|string|array|null $arguments = null)

No description

Parameters

mixed $abilities
Model|string|array|null $arguments

Return Value

CanBeHidden

CanBeHidden authorizeAny(string|BackedEnum|array $abilities, Model|array|null $arguments = null)

No description

Parameters

string|BackedEnum|array $abilities
Model|array|null $arguments

Return Value

CanBeHidden

protected array parseAuthorizationArguments(array $arguments)

No description

Parameters

array $arguments

Return Value

array

CanBeHidden hidden(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

CanBeHidden visible(bool|Closure $condition = true)

No description

Parameters

bool|Closure $condition

Return Value

CanBeHidden

bool isAuthorized()

No description

Return Value

bool

bool isHidden()

No description

Return Value

bool

bool isHiddenInGroup()

No description

Return Value

bool

bool isVisible()

No description

Return Value

bool