The multi-tenant e-commerce platform on Laravel needed a content management system in which each tenant works in its own language, uses a fully isolated database and gets its own permissions and customization options. For that, Unique-P integrated Statamic into the platform and extended it for the multi-tenant environment. Users sign in via single sign-on (SSO) through Microsoft Entra ID (formerly Azure Active Directory), and the product information comes from Akeneo PIM. The solution combines the flexibility of Statamic with the features of the e-commerce platform and ensures reliable data storage and authentication.
Features of the Statamic integration in detail
Extending Statamic for multi-tenant functionality
Statamic, a Laravel-based CMS, was extended specifically for the multi-tenant shop platform to support multiple tenants. Data structures and permissions were adapted so that each tenant has an isolated environment with its own data, permissions and features.
Each Statamic tenant instance can use different languages and manage its own layouts and design elements. An inheritance principle allows global layouts and designs to be adopted, with the option to override specific elements individually for each tenant.
Flat-file configuration and content storage
Statamic’s configuration files are managed in a Git repository, which allows flexible versioning and rollbacks.
The Statamic content is loaded from a Microsoft Azure network drive, which simplifies central management and storage. This custom hybrid setup gives the tenants a stable and efficient solution for content management and delivery.
Special caching strategies for content on the network drive
For the Statamic content on the Microsoft Azure network drive, a caching solution was implemented that ensures fast access to frequently requested content while minimizing network load.
The caching strategy for the network drive ensures fast load times and an optimized user experience, especially with large amounts of data and high access frequency.
Integration of Microsoft Entra ID and Akeneo PIM
The multi-tenant e-commerce application is connected to Microsoft Entra ID (Azure AD) and Akeneo PIM through specially developed components.
Authentication on the multi-tenant platform runs via single sign-on (SSO) through Microsoft Entra ID, which provides a secure and user-friendly sign-in method.
Akeneo PIM handles the automatic syncing and management of product information for the various tenants. Product data is maintained centrally and can be integrated easily into the multi-tenant environment.
Tenant-specific permissions and features
Each tenant accesses Statamic features and content through a dedicated permission model, so control over content and access rights is tailored to each tenant’s specific needs.
The granular permission structure per tenant allows precise control over who can access which areas and lets tenants manage content and designs individually.