CanBeHidden
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
CanBeHidden
authorizeAny(string|BackedEnum|array $abilities, Model|array|null $arguments = null)
No description
protected array
parseAuthorizationArguments(array $arguments)
No description
CanBeHidden
hidden(bool|Closure $condition = true)
No description
CanBeHidden
visible(bool|Closure $condition = true)
No description
bool
isAuthorized()
No description
bool
isHidden()
No description
bool
isHiddenInGroup()
No description
bool
isVisible()
No description