LiveWire Redirect
I have a menuitem which invokes a livewire component.
That component does some logic and redirects them back to the main dashboard.
The redirect is not working, not sure what the issue is.
Not sure if there is a better way to invoke a livewire component or specific method from an MenuItem. Ultimately I need to invoke some logic from a menuitem. I believe this is a issue with redirects in the render method. However I am at a loss to understand the best way to accomplish this.
2 Replies
Solved this using a controler, but it breaks my spa. Still interested in a better solution if anyone has an idea.
In my project im redirect back with something like: return redirect()->route('my-route');
And is working fine (filament notification after the redirect too)