Reordering repeater items
https://filamentphp.com/docs/3.x/forms/fields/repeater#reordering-items
Am I going crazy? Isn't there a way to tell it what column the "order" should save to?
7 Replies
Of course after looking for a while then posting this question, I find it immediately: https://filamentphp.com/docs/3.x/forms/fields/repeater#reordering-items-in-a-relationship
Swear I CMD+F'd and searched multiple times
except it doesn't work...?
Make sure ‘sort_order’ is fillable on the model and that it is included in the relationship query if it’s a pivot.
Just figured this out 🤦♂️
Long day
Thank you!
Maybe share what the problem was if you care too, it might help people in the future with similar problems. Cheers!
Saved me hours of debugging 😁
... Same here. Feeling very dumb 😆