Maxime
How can i trigger model events when changing pivot table
I have a filament select going like that :
I added an updated() booted event to my Song model but it does not trigger when i update the selected artists. (as i expected)
Is there an easy way to get, uppon saving the edit form, a clean "before" => "after" array with the artists ? Calling the events directly in my
ArtistSong
model does not seem to help1 replies
Programmatically fill repeaters in EditRecord page
Is there a way to fill repeaters in an EditRecord page with some values ?
Using
->default()
is only possible on a CreateRecord page IIRC.
I've tried directly using
but nothing gets added to the repeater, and if i dd()
the form raw state right after, this is what i get :
13 replies