Skip to main content

Overview

Core notifications are exposed via contracts, so you can swap implementations without changing core code. Each notification has a contract in Esign\UnleashCommerce\Core\Contracts\Notifications and a default implementation in Esign\UnleashCommerce\Core\Notifications.

Replace a core notification

Create a custom notification that implements the same contract. You can extend the core notification and override the parts you need:

Bind the notification contract

Bind the contract to your custom class in a service provider:

Available notification contracts

See the full list in the Notifications Reference.