Skip to content

Quick Start

Terminal window
composer require matheusmarnt/scoutify
php artisan scoutify:install
php artisan scoutify:doctor

Pick an Eloquent model (e.g., User) and register it for global search:

Terminal window
php artisan scoutify:searchable User

This will automatically add the necessary trait and contract to your model.

Populate your search index with your existing records:

Terminal window
php artisan scoutify:import

Place the trigger component in your navigation or header:

{{-- Desktop trigger --}}
<x-scoutify::gs.trigger class="hidden lg:inline-flex" />
{{-- Mobile trigger --}}
<x-scoutify::gs.trigger-mobile class="lg:hidden" />

Refresh your browser and press ⌘K (or Ctrl+K) to open the search modal. Start typing to see results across your registered models.