$modelPermissions->may()
Non-throwing counterpart of ::ensure()
$modelPermissions->may(string $action, bool $default = false): bool
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $actionrequired | string |
no default value | |
| $default | bool |
false
|
Used if no rule is defined for the action |
Return type
bool