action button in topbar
Hi! I'm trying to put an action button on the topbar, but nothing is happening when I click on the action.
My code is like this:
Livewire component:
Hook on the panel provider:
My code is like this:
Livewire component:
Hook on the panel provider:
Solution
Ah, it’s because the name of the action doesn’t match the output in the blade file.
Action::make(‘custom’)
{{ $this->customAction }}
Action::make(‘custom’)
{{ $this->customAction }}