Skip to main content

Overview

Actions encapsulate business logic that can be reused throughout your application. You can replace core actions with your own custom implementations to modify behavior.

Replacing a Core Action

To replace a core action, bind the action contract to your custom implementation in a service provider:
Your custom action should implement the same interface as the core action:

Using Actions

Actions are resolved from the container and can be injected directly:

Testing Actions

Test your custom actions in isolation:

Available core actions

See the Actions Reference for a complete list of available actions you can replace.