@@ -38,7 +38,7 @@ Groups are defined within the `Shield\Config\AuthGroups` config class.
38
38
39
39
``` php
40
40
41
- public $groups = [
41
+ public array $groups = [
42
42
'superadmin' => [
43
43
'title' => 'Super Admin',
44
44
'description' => 'Optional description of the group.',
@@ -66,7 +66,7 @@ a scope and action, like `users.create`. The scope would be `users` and the acti
66
66
can have a description for display within UIs if needed.
67
67
68
68
``` php
69
- public $permissions = [
69
+ public array $permissions = [
70
70
'admin.access' => 'Can access the sites admin area',
71
71
'admin.settings' => 'Can access the main site settings',
72
72
'users.manage-admins' => 'Can manage other admins',
@@ -88,7 +88,7 @@ The matrix is an associative array with the group name as the key,
88
88
and an array of permissions that should be applied to that group.
89
89
90
90
``` php
91
- public $matrix = [
91
+ public array $matrix = [
92
92
'admin' => [
93
93
'admin.access',
94
94
'users.create', 'users.edit', 'users.delete',
@@ -100,7 +100,7 @@ public $matrix = [
100
100
You can use a wildcard within a scope to allow all actions within that scope, by using a ` * ` in place of the action.
101
101
102
102
``` php
103
- public $matrix = [
103
+ public array $matrix = [
104
104
'superadmin' => ['admin.*', 'users.*', 'beta.*'],
105
105
];
106
106
```
0 commit comments