Role::load()
Creates a role from the given blueprint file
Role::load(string $file, array $inject = []): Role
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $filerequired | string |
no default value | |
| $inject | array<string, mixed> |
[]
|
Props to add if not defined |