Skip to main content
Algolia Scout Extended requires the following PHP and Laravel versions:
Scout Extended v4 upgrades Algolia’s PHP API client to v4 and requires Laravel Scout 10.11.6 or later. Scout Extended v5 requires Laravel Scout 11, which replaces the numericFilters search parameter with filters. To upgrade from an earlier version, see the Upgrade guide.
For more information, read the Scout Extended changelog.
  1. Install Scout Extended with Composer:
    Command line
  2. Publish the Scout configuration to your config directory:
    Command line
  3. For the model you would like to make searchable, add the Searchable trait. For example, for an Article model (app/Models/Article.php):
    PHP
    Replace Article with a model used in your app.
  4. While not required, you should use a queue driver for Scout operations. After configuring a queue driver, set queue to true in your config/scout.php file:
    PHP
  5. Set Algolia as the Scout driver and copy your credentials from the Algolia dashboard to your .env file:
    .env
    Laravel Scout defaults to the collection driver, so you must set SCOUT_DRIVER=algolia for your data to be indexed in Algolia. Scout Extended’s Artisan commands manage index settings and copy, move, and delete indices, so ALGOLIA_SECRET requires the admin API key (or a key with the search, browse, addObject, deleteObject, deleteIndex, editSettings, and settings permissions).
  6. To import existing data:
    • If you’re importing from your Laravel database for the first time, use scout:import.
    • If you’ve installed Scout Extended in a Laravel Scout project, use scout:reimport.
    If you make significant changes to your Scout configuration or need to reindex all your data, use scout:reimport to ensure everything is in sync.
  7. Open the routes/web.php file and add the following route to the bottom of the file:
    PHP
    Replace Article with a model used in your app.
Last modified on July 23, 2026