Skip to main content

Overview

Core controllers are wired in the starter kit routes. To replace one, point the route to your own controller in routes/web.php. Keep returning response contracts from Esign\UnleashCommerce\Core\Contracts\Http\Responses.

Replace a core controller

Swap the controller class in the route definition:

Build your custom controller

Return the same response contract that the core controller expects:

Where to update routes

The starter kit routes live in routes/web.php. Replace any core controller class there with your own implementation.

Available core controllers

See the Controllers Reference for a complete list of available controllers.