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
You mean in the topbar ? Between "Laravel" and the account avatar ?
Or replacing the "Dashboard" heading text?
Yes, right
like here:
I think the best way will be topbar/index.blade or?
Solution
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 πThank you very much π
Maybe you have an idea: @larazeus @jibaymcs
Unable to find component: [app.http.livewire.instance-switcher]
livewire 3 moved the autodiscovery to
app/Livewire
they aren't in Http/LivewireAhh holy crap.. didnt sawed this
Thank you very much