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

myregistration's avatar

How do you refresh a relation manager after editing the relative form?

I can get the Livewire event listener to work, but I can't find how to refresh the relation manager table to refresh after updating the relative record form on the same page? I can get the form itself to update fields using the following, but how can we update the whole form, the relation manager list table, or a table in general? Where is this in the documentation? Also, can you call $refresh using #[On]? I couldn't find info on Livewire about that either. I tried$listeners['recordFormUpdated'=> '$refresh'], but it didn't do anything. Thanks

   #[On('record-updated')]
    public function recordFormUpdated(): void
    {
        $this->refreshFormData(['terminated_at', 'approved_at']);
    }
0 likes
0 replies

Please or to participate in this conversation.