Laravel EnsoLaravel Enso
Guide
Back End
Front End
GitHub
Guide
Back End
Front End
GitHub
  • Back End

    • Action Logger
    • Addresses
    • Algolia
    • Algolia Webshop
    • API
    • Audits
    • Avatars
    • Cache Chain
    • Calendar
    • Cargo Partner
    • Categories
    • Charts
    • CI/CD
    • Cli
    • CNP Validator
    • Comments
    • Commercial
    • Companies
    • Core
    • Countries
    • Currencies
    • Data Export
    • Data Import
    • Discounts
    • Documents
    • Dynamic Methods
    • EAV
    • Emag
    • Enums
    • Excel
    • Facebook
    • Files
    • Filters
    • Financials
    • Forms
    • Frisbo
    • Google
    • Helpers
    • Holidays
    • How-to
    • Image Transformer
    • Impersonate
    • Interactions
    • Inventory
    • IO
    • Localisation
    • Lockable Models
    • Logs
    • Measurement Units
    • Meili Search
    • Meili Search Webshop
    • Menus
    • Migrator
    • Monitored Emails
    • Notifications
    • Packaging Units
    • PDF
    • People
    • Permissions
    • Product Eav
    • Product Lots
    • Products
    • Questionnaires
    • Rememberable
    • Roles
    • Sale Channels
    • Searchable
    • Select
    • Sentry
    • Services
    • Smart Bill
    • Sms Advert
    • Stripe
    • Tables
    • Tasks
    • Teams
    • Ticketing
    • Track Who
    • Tutorials
    • Typesense
    • Typesense Webshop
    • Unit Conversion
    • Upgrade
    • UPS
    • User Groups
    • Users
    • Versions
    • Virtual Call Center
    • Vouchers
    • Webshop
    • Webshop Commercial

Algolia Webshop

LicenseStablePHPIssuesMerge Requests

Description

Algolia Webshop connects the Enso webshop filtering layer to Algolia.

When the application uses scout.driver=algolia and the Algolia integration is enabled, the package replaces the default database-backed webshop product and category filters with Algolia-backed implementations. It also keeps Algolia facet settings in sync with EAV filter changes used by the product catalog.

The package does not expose its own UI. It extends the existing webshop flow by rebinding filter services and by reacting to EAV attribute updates.

Installation

Install the package:

composer require laravel-enso/algolia-webshop

Make sure the host application already has:

  • laravel-enso/algolia installed and enabled
  • a working Algolia Scout configuration
  • indexed webshop products

No additional routes or published assets are required by this package.

Features

  • Switches webshop product filtering to Algolia-backed pagination and facet filtering.
  • Switches category filter resolution to Algolia facets.
  • Swaps the webshop sorts enum when Algolia search is active.
  • Observes EAV attribute updates and queues Algolia facet setting updates.
  • Chains EAV facet updates with product attribute resynchronization.

Usage

Once Algolia is enabled in the base integration settings and the Scout driver is set to algolia, the package bindings are applied automatically.

The category and product filter providers are resolved lazily and fall back to the core database implementations when Algolia is disabled.

EAV attributes marked as filterable are pushed into Algolia's attributesForFaceting through the queued UpdateEavFilters job.

API

Service bindings

When Algolia is active, the package replaces these webshop services:

  • product filter provider
  • category filter provider
  • sorts enum provider

Queue job

  • LaravelEnso\\AlgoliaWebshop\\Jobs\\UpdateEavFilters

Behavior:

  • reads the current Algolia index settings for products
  • appends the searchable EAV key to attributesForFaceting
  • persists the updated settings back to Algolia

Depends On

Required Enso packages:

  • laravel-enso/algolia ↗
  • laravel-enso/categories ↗
  • laravel-enso/companies ↗
  • laravel-enso/core ↗
  • laravel-enso/eav ↗
  • laravel-enso/enums ↗
  • laravel-enso/helpers ↗
  • laravel-enso/product-eav ↗
  • laravel-enso/webshop ↗
Edit this page on GitHub
Last Updated: 4/20/2026, 3:00:37 PM
Prev
Algolia
Next
API