Featured
Add Full-Text Search to Your Laravel App with Scout and Meilisearch
Database LIKE queries will carry you a long way, but eventually users notice they have to spell things exactly right, cannot search across multiple fields at once, and get no results ranking to help them find what they are looking for. That is when it is time for proper full-text search. Laravel Scout makes the integration surprisingly painless, and Meilisearch is the best open source engine to pair with it for most Laravel apps. This tutorial walks from zero to a working search with filters, relevance, and typo tolerance. What You Are Building By the end of this tutorial you will have: Eloquent models that are automatically indexed when created or updated A search endpoint that returns ranked, typo-tolerant results Filters to narrow results by category and status A working local development setup with Laravel Sail Installing Scout and Meilisearch composer require laravel/scout php artisan vendor:publish --provider="Laravel\Scout\ScoutServiceProvider" composer require meilisearch/meili...