aldec
Accessing relationship data in form lifecycle hook
I'm trying to accessing (and possibly unsetting) a form input in the mutateDataBeforeCreate() hook. The form input is in a relationship (via Group::make()->relationship). But accessing the $data variable only shows the inputs from the root resource, all the relationship-related inputs are not there. How can I access them?
15 replies
File Upload without model/resource
Hi! Is it possible to use the FileUpload component in a custom page to upload arbitrary files? I want to upload a GeoJSON where the contents are parsed and then saved in an addresses table, but the table itself does not need to save the file. Do I need to create some kind of "import model" (similar to the one from the CSV Importer) just to save and hold the file itself?
2 replies