Importing with extra data
Hello people, is it possible to import some data to the application using the csv importer but to add extra data using a select box?
I want to do something like
ImportColumn::make('campaign')
->relationship(Campaign::class, 'name'),
ImportColumn::make('surname')
->requiredMapping()
->rules(['required']),
Select::make('some_data')
->options(['asd', 'sasd', 'etc'])...
Is that possible?
1 Reply
Add a getOptionsFormComponents method to your importer with your form fields.