Getting event after record creation (afterCreate not working here)
I have 2 tables
I want to perform something after contact creation.
I added
Is there any event/hook/anything which I can use to perform something after a resource's all data (including relationship tables) get saved?
contacts and contacts_profile. I have a form to create a contact (and also fill in contact profile fields as well in that same form).I want to perform something after contact creation.
I added
afterCreate in ContactCreate.php but problem is that afterCreate gets called before record get saved in contacts_profile.Is there any event/hook/anything which I can use to perform something after a resource's all data (including relationship tables) get saved?