Skip to content

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.

  • Default: 250
  • Description: Wait time in milliseconds before triggering a search after the user stops typing.

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).
  • Description: Paths where Scoutify should scan for models using the Searchable trait.
  • Paths: Defaults to [app_path('Models')].

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 (default 300).
  • 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').
  • default: 'secure' | 'permissive' | 'gate-only'
  • gate_ability: The ability name used for Laravel policy checks (default 'view').
  • 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, and modal.ui are no longer config keys. Use Scoutify::types(), Scoutify::theme(), and Scoutify::configureUi() instead. See the v2 upgrade guide.