scout-development

Configure Laravel Scout search engines and query indexed models.

1|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/jonaaix/laravel-livewire-base --skill scout-development-jonaaix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scout-development
Source: https://github.com/jonaaix/laravel-livewire-base/tree/main/.claude/skills/scout-development
Command: npx skills add https://github.com/jonaaix/laravel-livewire-base --skill scout-development-jonaaix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Implementing scalable and accurate full-text search in Laravel projects can be complex without a unified workflow. This skill guides engineers through installing, configuring, and using Laravel Scout across multiple engines, wiring models for searchability, and handling indexing and querying tasks.

Core Features & Use Cases

  • Install Scout and configure a driver for the chosen engine (Algolia, Meilisearch, Typesense, Database, or Collection) in a Laravel app.
  • Attach the Searchable trait to Eloquent models and customize toSearchableArray or searchableAs for indexable data.
  • Import, flush, and query indexes with filters, pagination, and soft deletes across engines.

Quick Start

Configure Scout in a Laravel project and make a model searchable using the guided setup.

Frequently Asked Questions about scout-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add full-text search to Laravel Eloquent models?

Add full-text search to Laravel Eloquent models by installing Scout, configuring a search engine driver, and attaching the Searchable trait to enable automatic data indexing and querying.

What search engines can I use with Laravel Scout?

Laravel Scout supports configuring drivers for Algolia, Meilisearch, Typesense, Database, or Collection engines, allowing you to select a search engine based on your application's specific scaling needs.

How do I customize the searchable data array for a Laravel model?

Customize searchable data for a Laravel model by overriding the toSearchableArray method to define indexable fields, or use searchableAs to specify a custom index name for your search engine.

Can I apply where clauses and pagination to Scout search queries?

You can apply where clauses and pagination to Scout search queries to filter indexed data, and the configuration also supports handling soft deletes across the chosen search engine.

How do I import and flush records when setting up Laravel Scout?

Import and flush records when setting up Laravel Scout by executing artisan commands to synchronize existing Eloquent data into the search engine index before executing full-text queries.