You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 2, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+3-1
Original file line number
Diff line number
Diff line change
@@ -266,7 +266,7 @@ class ContactForm extends Component
266
266
}
267
267
```
268
268
269
-
Normally you would use a `wire:model` attribute to bind a component property with a form element. By using the `@wire` directive, this package will automatically use the `wire:model` attribute instead of the `name` attribute.
269
+
Normally you would use a `wire:model` attribute to bind a component property with a form element. By using the `@wire` directive, this package will automatically add the `wire:model` attribute.
270
270
271
271
```blade
272
272
<x-form wire:submit.prevent="submit">
@@ -289,6 +289,8 @@ Additionally, you can pass an optional modifier to the `@wire` directive. This f
289
289
</x-form>
290
290
```
291
291
292
+
It's also possible to use the `wire:model` attribute by default. You may set the `default_wire` configuration setting to `true` or a modifier like `debounce.500ms`. This way, you don't need the `@wire` and `@endwire` directives in your views. You may still override the default setting by manually adding the `wire:model` attribute to a form element.
293
+
292
294
### Select elements
293
295
294
296
Besides the `name` attribute, the `select` element has a required `options` attribute, which should be a simple *key-value* array.
0 commit comments