© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3mo ago•
4 replies
foggy

Filament Drop-down menu

Hi all.

I'm trying to implement a drop down menu in the title bar of my app.
Filament 4, Laravel 12.

I just want a drop down in the top right. The menu items are pulled from a table 'id', 'companyname'. I want the company name to form the items and when one is clicked, it updates a Session:: variable with the selected ID. By default the menu should display the name of the company in that session variable. Simple really.

I found this: https://stackoverflow.com/questions/78821991/add-dropdown-element-to-laravel-filament-top-bar and it seems it suits my needs perfectly so I'm trying to get it working. Like a commenter says though, it's written for Filament 3.x and it won't directly work in 4.

I've tried all manner of everything and I keep banging into the same thing as that poster. Component not found when making the selection in the drop down. It seems to do with the live() method. Remove that and it seems to work, but obviously I want it live!

Is there a better way of doing what I want? If not, how do I get the referenced code working in 4.x?

cheers
Stack Overflow
Add Dropdown element to Laravel Filament top bar
Hi Everyone,
I'm working on a project with Laravel Filament and I'm looking to enhance the top bar by adding a dropdown field. Imagine a vibrant red rectangle at the top of the screen; that's where I
Add Dropdown element to Laravel Filament top bar
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Filament Menu
FilamentFFilament / ❓┊help
2y ago
How to hide drop down on menus?
FilamentFFilament / ❓┊help
2y ago
Filament Domain Down
FilamentFFilament / ❓┊help
12mo ago
filament have ? free plugin like menu drag and drop like wordpress ??
FilamentFFilament / ❓┊help
16mo ago