Components

Search

Used to create MoonShine layouts.

The Search component adds a search form to layout.

Search::make()
<x-moonshine::layout.search
placeholder="Search..."
/>

By default, in the standard layout, the Search component is located in the Header component, but it also fits well into the Sidebar. To place the search form in the sidebar, you can use the sidebarSlot() method.

For more information about how the search works, see ModelResource > Search.