Skip to content
Since 2020

Laravel in WordPress: the base of Pernod Ricard's Crystal sites

We brought Laravel into WordPress with Acorn and built a shared framework on top. Lillet's new site went from plan to launch in eight weeks.

from plan to launch for lillet.com
8 weeks
end-to-end tests on lillet.com
60
unit test files on lillet.com
199

The challenge

Pernod Ricard's brands need sites of their own, with their own design, on the group's shared platform.

When every site is built from scratch, the code differs everywhere. What was solved for one brand can't be reused for the next, and every site gets harder to maintain.

Our role

We have built the sites on this base since 2020: the choice of Bedrock, Sage and Acorn, the shared component library, the tests and the build pipeline. Hosting on Pantheon is run by the group.

Period
Since 2020
Stack
  • Bedrock
  • Acorn
  • Laravel
  • Sage
  • Blade
  • Livewire
  • ACF Composer
  • Tailwind CSS 4

From Bedrock to a finished brand site

Bedrock keeps WordPress in order, Acorn brings in Laravel and Sage is the theme. Components are shared between the sites, and the tests stand between the code and production.

  1. Base

    Bedrock turns WordPress into a Composer project, with dependencies in code and configuration per environment.

    • Bedrock: WordPress via Composer
  2. Laravel

    Acorn brings Laravel into WordPress: the service container, Blade and Laravel's tools in every site.

    • Acorn: Laravel in WordPress
  3. Theme

    Sage is the theme. Blocks are written with ACF Composer and Blade, and lists that filter instantly run on Livewire. Underneath sits a shared component library.

    • Sage: Theme and Blade
    • Components: Shared between sites
    • Livewire: No page reloads
  4. Tests

    End-to-end tests in Playwright and unit tests in Pest run on every pull request.

    • Tests: Pest and Playwright
  5. Sites

    Every brand site starts from the same base and builds its own blocks on top.

    • The sites: Own blocks on top

What we built

  1. Laravel in WordPress

    With Acorn the sites get Laravel's tools inside WordPress: Blade views, the service container and a clear place for every part of the code. We were early with Sage 10 and Acorn, in 2020–2021.

  2. Blocks editors combine

    Blocks are written with ACF Composer and Blade. lillet.com has blocks for the hero, the range, step-by-step recipes, a timeline, galleries, FAQs, video and an Instagram feed.

  3. A shared component library

    Dialog, disclosure, popover, carousel, market picker and star rating are shared between the sites. Lillet reuses the market picker from Malfy and Malibu's script loading.

  4. Livewire for the lists

    Grids of drinks, food and posts filter and page with Livewire, without reloading the page.

  5. Tests from day one

    lillet.com has 60 end-to-end tests in Playwright and 199 unit test files in Pest, malfygin.com 19 and 109. Every pull request gets a preview environment of its own.

  6. New sites in weeks

    Malibu joined the platform in 2022 with the code from Absolut's site as its base. Lillet's new site went from plan to launch in eight weeks in 2026, Malfy's in under six months.

Where it stands

  • absolut.com, absolutdrinks.com, Lillet, Malfy, Malibu and Kahlúa have been built on the base.
  • A new site starts from the components, tests and build pipeline that already exist.
  • Lillet's new site went from plan to launch in eight weeks.

Built for