Configuration Reference
This page provides a detailed breakdown of all settings available in config/scoutify.php.
icon_prefix
Section titled “icon_prefix”- Default:
'heroicon-o-' - Description: The default prefix prepended to icon names if no pack prefix is detected. Compatible with any Blade Icons pack.
recents
Section titled “recents”Configuration for the “Recent Searches” feature.
enabled: (bool) Whether to track recent searches.limit: (int) Maximum number of items to keep.storage: (string) Storage driver ('session'is recommended).
debounce_ms
Section titled “debounce_ms”- Default:
250 - Description: Wait time in milliseconds before triggering a search after the user stops typing.
- Description: Manual registration of model types. Use this if you don’t want to use auto-discovery.
- Example:
'App\Models\User' => ['icon' => 'user', 'color' => 'indigo', 'label' => 'Users'],
classes
Section titled “classes”- Description: Custom CSS classes for every UI element in the search modal. Use this to style the modal with your own Tailwind or CSS tokens.
discovery
Section titled “discovery”- Description: Paths where Scoutify should scan for models using the
Searchabletrait. - Paths: Defaults to
[app_path('Models')].
authorization
Section titled “authorization”default:'secure'|'permissive'|'gate-only'gate_ability: The ability name used for Laravel policy checks (defaults to'view').
broadcast_events
Section titled “broadcast_events”- Description: Customizable event names dispatched by the modal to the browser.
- Defaults:
scoutify:open,scoutify:opened,scoutify:closed,scoutify:remember.