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