Skip to content

Commit

Permalink
Rename my-new-settings to my-new-setting
Browse files Browse the repository at this point in the history
  • Loading branch information
vinkla committed Oct 18, 2023
1 parent 821549c commit 0a59d49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ The `withSettings` method overwrites any existing settings on the field when you

```php
Text::make('Name')
->withSettings(['my-new-settings' => 'value'])
->withSettings(['my-new-setting' => 'value'])
->required()
```

Expand All @@ -731,7 +731,7 @@ class Select extends Field
{
public function myNewSetting(string $value): static
{
$this->settings['my-new-settings'] = $value;
$this->settings['my-new-setting'] = $value;

return $this;
}
Expand Down

0 comments on commit 0a59d49

Please sign in to comment.