Skip to main content

Overview

Unleash Commerce Core exposes middleware through container bindings. You can replace core middleware by binding the contract to your own class.

Replace a core middleware

Create a custom middleware that extends the core implementation and implements the same contract:

Bind the middleware contract

Bind the core contract to your custom class in a service provider so the core resolves your middleware:

Available core middleware contracts

See the Middleware Reference for a complete list of available middleware you can replace.