Redirect after bulk action
is this how u would redirect after a bulk action is completed?
i tried to use
$this->to_route()
but im not in an object context
i prefer $this->to_route()
since is the livewire one. the return to_route()
is the laravel one. and the diference is that the filament notifications/livewire stuff glitches a little bit, just a little, before redirecting. instead, the livewire one doesnt do it ^^15 Replies
anyone?
Inject $livewire into the ->action() callback then you can call it.
how can inject it? i get this:
im also unable to get the name, which i have filled in the form :/
i cant inject
$get
but isnt that what i have done? i missed the type
Component
?
still get same error though
maybe for bulk actions is different?In livewire v3 it’s ->redirectRoute('profile')
oh u r right
omg thanks
There is no to_route() method as the error is telling you.
yeah 🥲
@ericmp Hi, did you manage to solve it? I am in the same.
hi, i did it this way:
Hi @ericmp, It was the solution I found too, thanks for your time.
https://discord.com/channels/883083792112300104/1209647616023863308
nicee. but what is the link u share below? is another problem u have or is related?
It's a similar problem to what you were experiencing, I ended up opening the topic before finding this one.