Skip to content

Configuration Reference

This page provides a detailed breakdown of all settings available in config/scoutify.php.

  • Default: 'heroicon-o-'
  • Description: The default prefix prepended to icon names if no pack prefix is detected. Compatible with any Blade Icons pack.

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).
  • 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'],
  • 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.
  • Description: Paths where Scoutify should scan for models using the Searchable trait.
  • Paths: Defaults to [app_path('Models')].
  • default: 'secure' | 'permissive' | 'gate-only'
  • gate_ability: The ability name used for Laravel policy checks (defaults to 'view').
  • Description: Customizable event names dispatched by the modal to the browser.
  • Defaults: scoutify:open, scoutify:opened, scoutify:closed, scoutify:remember.