File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ ROLLOUT_TABLE=rollout
48
48
### Implementing Interfaces
49
49
50
50
##### User
51
+
51
52
Your rollout users must implement the ` \Jaspaul\LaravelRollout\Contracts\User ` interface. Often this will be your main user object:
52
53
53
54
``` php
@@ -68,6 +69,7 @@ class User implements Contract
68
69
```
69
70
70
71
#### Group
72
+
71
73
Your rollout groups must implement the ` \Jaspaul\LaravelRollout\Contracts\Group ` interface.
72
74
73
75
``` php
@@ -106,6 +108,7 @@ class BetaUsersGroup implements Group
106
108
and you should update your local ` laravel-rollout.php ` configuration to include the group in the groups array:
107
109
108
110
` laravel-rollout.php `
111
+
109
112
``` php
110
113
return [
111
114
...
@@ -140,7 +143,7 @@ Swap `{feature}` with the name of the feature you'd like to create a feature fla
140
143
141
144
` php artisan rollout:deactivate {feature} `
142
145
143
- Swap ` {feature} ` with the name of the feature you'd like to deactivate globally. Note this will also reset the user whitelist .
146
+ Swap ` {feature} ` with the name of the feature you'd like to deactivate globally. Note this will also reset the user allowlist .
144
147
145
148
### Delete
146
149
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ class FeaturePresenter
15
15
'all ' => 'Active for everyone. ' ,
16
16
'request_param ' => 'Active with a request parameter. ' ,
17
17
'percentage ' => 'Active via percentage rollout. ' ,
18
- 'whitelist ' => 'Active via group or user whitelist . ' ,
18
+ 'allowlist ' => 'Active via group or user allowlist . ' ,
19
19
'disabled ' => 'Deactivated globally. '
20
20
];
21
21
@@ -69,7 +69,7 @@ public function getDisplayStatus() : string
69
69
}
70
70
71
71
if (count ($ this ->feature ->getGroups ()) > 0 || count ($ this ->feature ->getUsers ()) > 0 ) {
72
- return self ::$ statuses ['whitelist ' ];
72
+ return self ::$ statuses ['allowlist ' ];
73
73
}
74
74
75
75
return self ::$ statuses ['disabled ' ];
You can’t perform that action at this time.
0 commit comments