Quick Start
Install in 3 commands
Section titled “Install in 3 commands”composer require matheusmarnt/scoutifyphp artisan scoutify:installphp artisan scoutify:doctorRegister your first model
Section titled “Register your first model”Pick an Eloquent model (e.g., User) and register it for global search:
php artisan scoutify:searchable UserThis will automatically add the necessary trait and contract to your model.
Import existing data
Section titled “Import existing data”Populate your search index with your existing records:
php artisan scoutify:importDrop the trigger in a layout
Section titled “Drop the trigger in a layout”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" /><x-scoutify::gs.trigger />Open with ⌘K
Section titled “Open with ⌘K”Refresh your browser and press ⌘K (or Ctrl+K) to open the search modal. Start typing to see results across your registered models.