Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

manu123's avatar

Laravel Nova: run action within an action

I have an action that is run synchronously. Within this action I follow some checks, and in some cases I would like to run another action (asynchronously this time). Is it possible to make an action perform another action?

I would therefore like to have this result:

  • execution of action 1 with status executed
  • execution of action 2 (which creates action 1 for me) to be executed in the queue

I tried to google but I couldn't find a way to make an action perform within an action. How can I do?

0 likes
1 reply
bugsysha's avatar

Instead of keeping your business logic inside of the action2, extract it to a dedicated class, and just dispatch a new job with that dedicated class. As simple as that.

Please or to participate in this conversation.