Skip to main content
Version: 10.x

Sub Actions

Definition & Principles#

Read Porto SAP Documentation (#Sub-Actions).

Rules#

  • All SubActions MUST extend from App\Ship\Parents\Actions\SubAction.

Folder Structure#

- app
- Containers
- {section-name}
- {container-name}
- Actions
- ValidateAddressSubAction.php
- BuildOrderSubAction.php
- ...

Code Sample#

ExampleSubAction#

class ExampleSubAction extends SubAction
{
public function run(SomeRequest $request)
{
app(SomeTask::class)->run($request);
}
}
note

Every feature available for Actions, are also available in SubActions.

Last updated on by Moslem Deris