File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,11 @@ Settings::isFalse('app.debug'); // true
58
58
Using ` all ` , you can retrieve all the stored settings, which will be returned as a collection. You may also retrieve a subset of settings
59
59
by passing in an array of keys to retrieve.
60
60
61
+ > {note} Either the ` ReadableKeyGenerator ` or a custom key generator must be configured to be used before this method can be used.
62
+ > See [ KeyGenerator docs] ( /docs/laravel-settings/{version}/advanced-usage/custom-generators#user-content-keygenerator ) for more information.
63
+ >
64
+ > In a future major release, the ` ReadableKeyGenerator ` may be set to be the default key generator.
65
+
61
66
``` php
62
67
Settings::all();
63
68
Original file line number Diff line number Diff line change @@ -102,6 +102,17 @@ Settings::setTeamId($currentTeamId);
102
102
103
103
> {tip} You can pass in an eloquent model to ` setTeamId ` instead of an id if you prefer.
104
104
105
+ #### Temporary Team Switching
106
+
107
+ As of ` v3.2.0 ` , to make administering team settings easier, we've added the following convenience methods to ` Settings ` :
108
+
109
+ - ` usingTeam($teamId) ` : Use this method to scope settings to a specific team on a single call.
110
+ - ` withoutTeams() ` : Use this method to remove team scoping for a single call.
111
+
112
+ ``` php
113
+ settings()->usingTeam('my-team-id')->set('foo', 'bar');
114
+ ```
115
+
105
116
## Contextual Settings
106
117
107
118
The ` Context ` object can be used in conjunction with teams for further scoping of settings. The most common scenario for this would be if you have a
You can’t perform that action at this time.
0 commit comments