Epko
How to eager load relationship inside infolist repeatable entry
Thanks Mark, your solution almost worked, but when I also have an Action button on the InfoList, it triggers the lazy loading error once again.
Turns out this is the way to do it:
And if you use an Action in the Infolist that also uses a relationship that should be eager loaded:
26 replies
Trim each input
This is indeed working, and probably the best solution. I find it strange this is not the default behaviour in Filament, as it is the default behaviour in Laravel (https://laravel.com/docs/11.x/validation#a-note-on-optional-fields).
For anyone having the same issue, this is how I implemented it (thanks to the suggestion of @toeknee):
But I have to repeat this in every Edit page.
7 replies