Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

LearnWithMoin's avatar

Liveware wire:model not working with id=""

In my livewire project wire:model is not working with the id="slug" input field.

<input type="text" id="slug" wire:model="product_slug">

Javascript will generate slug for input filed using slug id . When I submit form product_slug return a null value. What's the error?

0 likes
1 reply
Snapey's avatar

you are trying to two-way sync the property in the component with the value of the form field, and the component is winning.

Do you see the value being set on the input field?

Please or to participate in this conversation.