About Laravel a Livewire child component that uses#[Modelable] in the page of the route binding model renders report 404 caused by the parent component deleting the model🤔
阿虚
·
·
2026-11-05 19:51 Edited
When you use Livewire component, a model is deleted in the component method, and the results page returns 404. If your scene meets the following characteristics: 1. The page route is bound to the model. 2. The attribute of the sub-livewire component uses#[Modelable](the sub-component uses the wire:model binding attribute) 3. The parent component removes the bound model in the component method. Then this note may be helpful to you