Pass the record to the importer class
I’m currently using the importer action in a relation manager. What’s the best way to pass the
ownerRecord
to the importer and use it in resolveRecord
to set the relationship ID accordingly?
Solution:Jump to solution
Here is how you can pass data to the importer:
```php
ImportAction::make('importSearchQueries')
->importer(SearchQueriesImporter::class)...
1 Reply
Solution
Here is how you can pass data to the importer:
You can then use the following in your importer file.