Closed cstor01 closed 1 year ago
Hi @cstor01,
In your blade templates, it appears that state.name
and state.email
should be used as wire:model
instead of directly using public properties. The reason is that in this package, all the necessary data is stored in the $state
variable, rather than individual public properties. So, your blade templates should look something like:
<div>
<label for="name">Name</label>
<input type="text" id="name" wire:model="state.name" />
<label for="email">Email</label>
<input type="text" id="email" wire:model="state.email" />
</div>
Let me know if this helps, or if you have any more questions.
Thanks so much, it works! I was stuck to this for a couple of days.
i have made location tab but on submit General tab save function calls? how to call Location tab save method to save location form fields?
Hello, I followed the readme step by step to reproduce the example and edit the user table. Even if the model data is available on the general.blade.php the input fields are empty. My specification are:
Laravel v10.13.5 livewire v2.12.3
some code excerpts:
It's also impossible to update the model, thanks in advance for any help.