Skip to content
Laravel Integration

Laravel + Algolia Integration

Add lightning-fast search to your Laravel application with Algolia's hosted search API.

Why Algolia

Instant Search

Sub-50ms response times regardless of dataset size.

Typo Tolerant

Find results even with typos, plurals, and synonyms.

Faceted Search

Filter by categories, price ranges, brands, and more.

Analytics Built-In

See what users search for, click, and convert on.

Quick Start

// Install
composer require algolia/algoliasearch-laravel

// Configure .env
ALGOLIA_APP_ID=your-app-id
ALGOLIA_SECRET=your-api-key

// Index a model
$product = Product::find(1);
$product->searchable();

// Search
$results = Product::search('laptop')->get();