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

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalbaljet authored Jan 1, 2021
1 parent 2688847 commit 242e3b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ If you're using Tailwind, make sure the right plugin ([v1](https://github.com/ta
@bind($user)
<x-form-input name="last_name" label="Last Name" />
<x-form-select name="country_code" :options="$options" />
<x-form-select name="interests" :options="$multiOptions" label="Select your interests" multiple />
<x-form-select name="interests[]" :options="$multiOptions" label="Select your interests" multiple />
<!-- \Spatie\Translatable\HasTranslations -->
<x-form-textarea name="biography" language="nl" placeholder="Dutch Biography" />
Expand Down Expand Up @@ -277,7 +277,7 @@ You can provide a *slot* to the `select` element as well:
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.

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

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

0 comments on commit 242e3b7

Please sign in to comment.