Skip to main content

Core Middleware

All middleware are registered as contracts and can be replaced with custom implementations.
MiddlewareContractNamespacePurpose
AddInertiaAuthPropsAddInertiaAuthPropsContractEsign\UnleashCommerce\Core\Contracts\Http\MiddlewareShares authenticated user data with Inertia
AddInertiaGuestPropsAddInertiaGuestPropsContractEsign\UnleashCommerce\Core\Contracts\Http\MiddlewareShares guest data with Inertia
EnsureUserHasCustomerMiddlewareEnsureUserHasCustomerMiddlewareContractEsign\UnleashCommerce\Core\Contracts\Http\MiddlewareEnsures authenticated users have an active customer
HandleInertiaRequestsHandleInertiaRequestsContractEsign\UnleashCommerce\Core\Contracts\Http\MiddlewareCore Inertia middleware handler
ProtectsCustomerInvitationsProtectsCustomerInvitationsContractEsign\UnleashCommerce\Core\Contracts\Http\MiddlewareProtects customer invitation routes with signatures