ImportColumn relationship nullable

How can i set an import column relationship to nullable? i dont want it to fail if it cant find a match. Im already handing creation of that relationship in afterCreate() if it wasnt found.
ImportColumn::make('author')
->relationship()
ImportColumn::make('author')
->relationship()
4 Replies
Mark Chaney
Mark Chaney3mo ago
Am I missing something on this? Kind of a paint point for me as I’m having to remove the relationship method and do it all in beforeSave()
johnnie_littleshoes
have you tried ->ignoreBlankState() ?
Mark Chaney
Mark Chaney3mo ago
I can try that, but I’m not really sure that works with relationship(). I might though, thanks for the ideas
Want results from more Discord servers?
Add your server