Introduction
Global search allows users to search across all resource records from anywhere in your admin panel. It appears in the topbar (or sidebar) and returns results from multiple resources.
Enabling Global Search
Set a record title attribute on your resource:
This attribute identifies records in search results.
Your resource must have an Edit or View page for global search to work. Without a page to link to, no results will be returned.
Search Result Titles
Customize how record titles appear:
Return HTML or Markdown:
Searching Multiple Columns
Search across multiple attributes using dot notation for relationships:
Search Result Details
Show additional information below the title:
Prevent N+1 queries by eager loading relationships:
Custom Result URLs
By default, results link to the Edit page (or View page if the user lacks edit permissions).
Customize this:
Search Result Actions
Add buttons below each search result:
Opening URLs in New Tabs
Dispatching Livewire Events
Limiting Results
By default, 50 results are shown per resource. Customize this:
Sorting Results
Control the order in which resource results appear:
Lower numbers appear first.
Global Search Position
By default, global search is in the topbar. Move it to the sidebar:
Search Configuration
Key Bindings
Set keyboard shortcuts to open search:
Debounce
Control how long to wait before searching:
Field Suffix
Show the keyboard shortcut in the search field:
Or customize it:
Disabling Global Search
Disable it entirely:
Or for specific resources:
Search Term Splitting
By default, search terms are split into words. This allows flexible queries but may impact performance on large datasets.
Disable splitting:
Advanced Search Queries
Customize the search query:
Examples
Blog Posts
Customers
Products