How to pass vlsue into Class importer

this action in my Resource How to pass with it value into importer Calss
No description
15 Replies
toeknee
toeknee6mo ago
What type of value?
Alnuaimi
Alnuaimi6mo ago
number ?
toeknee
toeknee6mo ago
I am a little confused why you are wanting to pass an integer into the importer class.. Just set it in the class?
Alnuaimi
Alnuaimi6mo ago
when click relation manger I wanaa pass value of record number for import it
toeknee
toeknee6mo ago
I am not sure ImportAction has support for that yet, it's a very new feature.
Alnuaimi
Alnuaimi6mo ago
No description
Alnuaimi
Alnuaimi6mo ago
ok , How to pass value into class importer on action so I wanaa pass const ID number for all this records ?
toeknee
toeknee6mo ago
I don't know.
Alnuaimi
Alnuaimi6mo ago
Thanks brother
Patrick1989
Patrick19896mo ago
im running into this right now I have an Event (model), which have Invitees. Invitees is shown via relationsmanager. Now when adding this CSV import it does not know about event it should be applied to
toeknee
toeknee6mo ago
Had a chat with Dan, Use ->options(['owner' => $this->getOwnerRecord()->getKey()]) and then you can just use a hook in the importer to associate the owner
Patrick1989
Patrick19896mo ago
very nice, will try that out thanks!
Alnuaimi
Alnuaimi6mo ago
Can use this code like this ?
No description
Alnuaimi
Alnuaimi6mo ago
Wow it is very nice thanks brother
Want results from more Discord servers?
Add your server
More Posts