public addRule ( boolean $allow, string | array $actions, mixed $resources, Closure | null $condition = null ) : array | ||
$allow | boolean | True if privilege, false if restriction |
$actions | string | array | Action(s) for the rule(s) |
$resources | mixed | Resource(s) for the rule(s) |
$condition | Closure | null | Optional condition for the rule |
return | array |