Dispatch an action in the afterCreate resource hook method. #6530
asanchez19
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a ParcelResource and I need the generateParcelLabel action to be called after the resource was created. Asking "Do you want to generate the label" this action downloads a pdf and it's working if I manually click the action. Now my issue is that in order to avoid extra clicks I want to trigger the action as soon as the parcel was created. Is it possible?
On the code bellow I can get into my action but the Action:: methods like Action::message or Action::redirect don't work.
Help please!!
Beta Was this translation helpful? Give feedback.
All reactions