EditAction and ViewAction doesn't work on livewire-table
Hi everyone! I used a livewire-table to show different roles.
I'm having issues with the EditAction and ViewAction: when I click on edit, the loader starts and, when finished, I get a "saved" notification. When I click on view, nothing happens.
The wierd thing is that the DeleteAction works as intended.
This is my code:
I also tried to use the
getPages
method from the resource. Thank you so much for the help.1 Reply
Hi guys, for everyone that had or will have the same problem, I found a solution.
Here's the code to put in your $table actions method:
Table Actions can access to the selected record. With the
getUrl()
method, you can generate any URL regarding the resource, without the necessity to create a specific Laravel route.
You can find it here in the docs:
https://filamentphp.com/docs/3.x/panels/resources/getting-started#generating-urls-to-resource-pages