When I have nested parameters in an url using route model binding, laravel will automatically populate the pivot on the child model. This even works on belongToMany relationships, with a custom pivot model. Sadly this breaks in livewire when rehydrating the child model.
Does anyone have a clever trick to hydrate the pivot again ?
Back
•
In response to @sinnbeck
I ended up adding ulids to my pivot table and using that in the urls instead. That way it is waay simpler and I can load the file relationsship from there :)