Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
rawilk committed Oct 16, 2024
1 parent 70ed7a5 commit 8ac3cb1
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions docs/api/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public function get(string|BackedEnum $key, $default = null)
public function all($keys = null): \Illuminate\Support\Collection
```

> {note} The `DotNotationContextSerializer` context serializer must be used for this to work properly.
### has

```php
Expand Down Expand Up @@ -119,6 +121,44 @@ public function isTrue(string|BackedEnum $key, $default = true): bool
public function flush($keys = null): void
```

### getTeamId

```php
/**
* Retrieve the current team id for settings.
*/
public function getTeamId(): mixed;
```

### setTeamId

```php
/**
* Set the current team id for teams/groups support.
*
* @param Model|int|null|string $id
*/
public function setTeamId(mixed $id): Settings;
```

### usingTeam

```php
/**
* Use a team for a single call.
*/
public function usingTeam(mixed $teamId): Settings;
```

### withoutTeams

```php
/**
* Perform a single settings call without a team context.
*/
public function withoutTeams(): Settings;
```

### cacheKeyForSetting

```php
Expand Down

0 comments on commit 8ac3cb1

Please sign in to comment.