Title
To enable global search on your model, you must set a title attribute for your resource:getGlobalSearchResultTitle() method:
Multi-column search
If you would like to search across multiple columns of your resource, you may override thegetGloballySearchableAttributes() method. “Dot-syntax” allows you to search inside of relationships:
Details
Search results can display “details” below their title, which gives the user more information about the record. To enable this feature, you must override thegetGlobalSearchResultDetails() method:
category and author relationships will be lazy-loaded, which will result in poor results performance. To eager-load these relationships, we must override the getGlobalSearchEloquentQuery() method:
URL
Global search results will link to the Edit page of your resource, or the View page if the user does not have edit permissions. To customize this, you may override thegetGlobalSearchResultUrl() method and return a route of your choice:
Actions
Global search support actions that render a button or link which may open a URL or emit a Livewire event. Actions will render as link by default, but you may configure it to render a button using thebutton() method.
Actions can be defined as follows: