ziolupo
Explore posts from serversTLCTuto's Laravel Corner
•Created by ziolupo on 10/18/2024 in #🚀laravel
InfoList and RepeatableEntry
Dear all,
I have a problem with InfoList and RepeatableEntry.
Here the code
Inside the RepeatableEntry I can access the current "record" belonging to the relationship as it should be.
The problem is inside the form element: here if I'm trying to access to the current record I got the record outside the RepeatableEntry (in this case $this->winery).
How can I access to the "inner" record? Because my SELECT options depend on it. The "options" are changing for every different Exhibition.
Thank you
3 replies
TLCTuto's Laravel Corner
•Created by ziolupo on 1/26/2024 in #💡filament
Simple (modal) resource and mutateFormDataBeforeSave()
I have a problem with my simple resource.
I need to mutate the data before saving, but it's not possible to use mutateFormDataBeforeSave() as I would do with normal resource.
Any ideas?
I would like to add the following code:
I could use the boot() method on the model, but I would prefer not to do that.
Thank you
ZioLupo
5 replies