How can I get the record created from a createOptionAction?
I'm trying to get the record created inside after(), but this record is null. What would be the correct way to obtain this record?
2 Replies
It's a createIptionAction? Try ->afterCreate() and failing that see if you have $data in ->after(function ($data)) if you have data, just find the user again.
Thanks @toeknee, I managed to solve it with ->after(function ($data)).