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

zircuitz's avatar

Help me understand Livewire modelable

If I have a full-page Livewire component, with a child component I pass a Modelable property to, does updating the child component's property, also update the parent's property?

Ex:

Parent component:

Livewire\Users.php

class Users extends Component
{
    public bool $newUserModal = false;
}

users.blade.php

<!-- ... -->
<div>
	<livewire:create-user wire:model="newUserModal" />
</div>
<!-- ... -->

Child component:

class CreateUser extends Component
{
    #[Modelable]
    public bool $newUserModal; // <- Does updating this value within this class, update the parent's property value as well?
}

Maybe I'm just having a hard time seeing it, but I can't seem to find out through the documentation pages. From the little testing I've done so far, it doesn't seem to be the case. Which I find a little odd, since it's kind of expected behavior.

0 likes
2 replies
zircuitz's avatar

@webrobert This is the solution I ended up with. However: It's not really what I'm asking.

I'm simply asking if Modelable is propagating to the parent's property when the same property is changed on the child elements.

I was just looking for clarification since the documentation lacked such information.

Please or to participate in this conversation.