Use ID on newly created Model from ->createOptionAction
For the life of me i can't seem to figure this out.
I have a select form that uses ->createOptionForm so that i can create a new one (company in this case) as well. I want to perform some actions on it after creating like i can do with the afterCreate() method on my create page.
So far i have:
No matter what i try my Model in the ->after() method is always null ($action->after(function ($data, Model $record) {).
I have a select form that uses ->createOptionForm so that i can create a new one (company in this case) as well. I want to perform some actions on it after creating like i can do with the afterCreate() method on my create page.
So far i have:
No matter what i try my Model in the ->after() method is always null ($action->after(function ($data, Model $record) {).