Configuration Reference
This page covers the config/scoutify.php options that remain in v2. UI, theme, type, and color customization moved to the fluent PHP API.
debounce_ms
Section titled “debounce_ms”- Default:
250 - Description: Wait time in milliseconds before triggering a search after the user stops typing.
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).
discovery
Section titled “discovery”- Description: Paths where Scoutify should scan for models using the
Searchabletrait. - Paths: Defaults to
[app_path('Models')].
preview
Section titled “preview”File preview feature configuration.
enabled: (bool) Toggle the preview pane feature.route_prefix: (string) URL prefix for preview routes (default'scoutify/preview').middleware: (array) Middleware applied to preview routes.ttl_seconds: (int) Signed URL TTL in seconds (default300).max_size_bytes: (int) Maximum file size in bytes allowed for preview.allowed_mimes: (array) MIME types eligible for preview.viewer_for_mime: (array) Map MIME type patterns to custom Blade viewer views.fallback_view: (string) Blade view used when no viewer matches.
breakpoint_desktop: (string) Tailwind breakpoint at which the modal switches from mobile to desktop layout (default'md').
authorization
Section titled “authorization”default:'secure'|'permissive'|'gate-only'gate_ability: The ability name used for Laravel policy checks (default'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.
Removed in v2:
icon_prefix,types,classes,colors, andmodal.uiare no longer config keys. UseScoutify::types(),Scoutify::theme(), andScoutify::configureUi()instead. See the v2 upgrade guide.