Sometimes, we do not want things to be placed in the default position. In this case, we are talking about a search bar. But did you know that you can easily move it to the sidebar?
To show search in the sidebar, we use the SIDEBAR_NAV_START
Render Hook to add a GlobalSearch
Livewire component.
app/Providers/AppServiceProvider.php:
use Filament\View\PanelsRenderHook;use Illuminate\Support\Facades\Blade;use Filament\Support\Facades\FilamentView; class AppServiceProvider extends ServiceProvider{ // ... public function boot(): void { FilamentView::registerRenderHook( // ...