F
Filamentβ€’16mo 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β€’16mo ago
You mean in the topbar ? Between "Laravel" and the account avatar ? Or replacing the "Dashboard" heading text?
Tobi
TobiOPβ€’16mo ago
Yes, right
Tobi
TobiOPβ€’16mo ago
like here:
Tobi
TobiOPβ€’16mo ago
I think the best way will be topbar/index.blade or?
JibayMcs
JibayMcsβ€’16mo 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β€’16mo ago
Thank you very much πŸ™‚
Tobi
TobiOPβ€’16mo ago
Maybe you have an idea: @larazeus @jibaymcs Unable to find component: [app.http.livewire.instance-switcher]
awcodes
awcodesβ€’16mo ago
livewire 3 moved the autodiscovery to app/Livewire they aren't in Http/Livewire
Tobi
TobiOPβ€’16mo ago
Ahh holy crap.. didnt sawed this Thank you very much
Want results from more Discord servers?
Add your server