$permissions->for()
$permissions->for(string|null $category = null, string|null $action = null, bool $default = false): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $category | stringornull |
null
|
| $action | stringornull |
null
|
| $default | bool |
false
|
Return type
bool
This method modifies the existing $permissions object it is applied to and returns it again.