Working with Actions
An Action is a self-contained class responsible for performing a single, clearly-defined task within your application. This promotes modularity, maintainability, and consistency across your AdonisJS project.
The simplest action
An Action is simply a class with a handle
method.
Running your action
Actions can be ran easily within your application using actions.run()
.
Dependency Injection
As your actions are resolved from the Container you can use Dependency Injection.