Get the profile icon to the sidebar
Hello if you can see i am making a sidebar but i wanted to get the hole profile icon and menu to the left bottom, Anyone has a idea how??
8 Replies
https://filamentphp.com/docs/3.x/support/render-hooks#panel-builder-render-hooks
PanelsRenderHook::SIDEBAR_FOOTER
Thank you will look into it man, awesomeđź‘Š
And is it possible then to remove the profile icon in the header?
maybe published the view files and removed from blade (but not recommended to publish view files)
Or using CSS
.fi-dropdown-trigger { display: none }
Sorry, but I've read and read and I don't understand where I have to add the PanelsRenderHook, could you give me an example, thanks
yes, I saw and read it, but I don't understand what file I have to put it in: use Filament\Support\Facades\FilamentView;
use Filament\View\PanelsRenderHook;
use Illuminate\Support\Facades\Blade;
FilamentView::registerRenderHook( PanelsRenderHook::BODY_START, fn (): string => Blade::render('@livewire('livewire-ui-modal')'), );
in the boot method of a service provider, or directly on the panel provider with ->renderHook()
For example on the AdminPanelProvider:
ha ok, thanks