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