Back

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 ?

3

128

In response to @sinnbeck

What makes it a bit annoying is that I can see livewire (or laravel) doing the queries I need, due to the url before hydration. Perhaps I need to find a way of extracting it from the url, and simply not mount it..

140

  • No matching results...
  • Searching...

/ 1000