Skip to content
This repository was archived by the owner on Jan 2, 2024. It is now read-only.

Commit 242e3b7

Browse files
authored
Update README.md
1 parent 2688847 commit 242e3b7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ If you're using Tailwind, make sure the right plugin ([v1](https://github.com/ta
5151
@bind($user)
5252
<x-form-input name="last_name" label="Last Name" />
5353
<x-form-select name="country_code" :options="$options" />
54-
<x-form-select name="interests" :options="$multiOptions" label="Select your interests" multiple />
54+
<x-form-select name="interests[]" :options="$multiOptions" label="Select your interests" multiple />
5555
5656
<!-- \Spatie\Translatable\HasTranslations -->
5757
<x-form-textarea name="biography" language="nl" placeholder="Dutch Biography" />
@@ -277,7 +277,7 @@ You can provide a *slot* to the `select` element as well:
277277
If you want a select element where multiple options can be selected, add the `multiple` attribute to the element. If you specify a default, make sure it is an array. This applies to bound targets as well.
278278

279279
```blade
280-
<x-form-select name="country_code" :options="$countries" multiple :default="['be', 'nl']" />
280+
<x-form-select name="country_code[]" :options="$countries" multiple :default="['be', 'nl']" />
281281
```
282282

283283
#### Using Eloquent relationships
@@ -289,7 +289,7 @@ In the example below, you can attach one or more tags to the bound video. By usi
289289
```blade
290290
<x-form>
291291
@bind($video)
292-
<x-form-select name="tags" :options="$tags" multiple many-relation />
292+
<x-form-select name="tags[]" :options="$tags" multiple many-relation />
293293
@endbind
294294
</x-form>
295295
```

0 commit comments

Comments
 (0)