CanBeHidden
trait CanBeHidden (View source)
Properties
protected | $authorization | ||
protected bool|Closure | $isHidden | ||
protected bool|Closure | $isVisible |
Methods
authorize($abilities, Model|array|null $arguments = null)
No description
authorizeAny(string|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
isHidden()
No description
bool
isAuthorized()
No description
Details
CanBeHidden
authorize($abilities, Model|array|null $arguments = null)
No description
CanBeHidden
authorizeAny(string|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
isHidden()
No description
bool
isAuthorized()
No description