F
Filamentβ€’2y ago
Tobi

Best way to add select to header?

Hey! Is there some fix way how to add as best an select to the header, or do directly via blade?
10 Replies
JibayMcs
JibayMcsβ€’2y ago
You mean in the topbar ? Between "Laravel" and the account avatar ? Or replacing the "Dashboard" heading text?
Tobi
TobiOPβ€’2y ago
Yes, right
Tobi
TobiOPβ€’2y ago
like here:
Tobi
TobiOPβ€’2y ago
I think the best way will be topbar/index.blade or?
JibayMcs
JibayMcsβ€’2y ago
Yep ! Follow @larazeus solution ! Make a custom livewire compoment using forms: https://filamentphp.com/docs/3.x/forms/adding-a-form-to-a-livewire-component And you need something like Blade::render('<livewire:select-in-topbar/>') as return of your render hook πŸ˜‰
Tobi
TobiOPβ€’2y ago
Thank you very much πŸ™‚
Tobi
TobiOPβ€’2y ago
Maybe you have an idea: @larazeus @jibaymcs Unable to find component: [app.http.livewire.instance-switcher]
awcodes
awcodesβ€’2y ago
livewire 3 moved the autodiscovery to app/Livewire they aren't in Http/Livewire
Tobi
TobiOPβ€’2y ago
Ahh holy crap.. didnt sawed this Thank you very much

Did you find this page helpful?