Only table
Hello everyone. Can I generate a complete resource just to display the table (list) with filters, removing the create, edit and delete actions? Or is it more convenient to generate a custom view with just the table?
Solution:Jump to solution
both are possible.
- you can create a resource and add a policy to return true only to the viewAny method.
- you can create a resource and remove the actions/pages
- you can create a custom page and add a table.
...
2 Replies
Solution
both are possible.
- you can create a resource and add a policy to return true only to the viewAny method.
- you can create a resource and remove the actions/pages
- you can create a custom page and add a table.
https://filamentphp.com/docs/3.x/panels/pages#creating-a-page
https://filamentphp.com/docs/3.x/tables/adding-a-table-to-a-livewire-component#adding-the-table
Thank you very much, I did it by deleting the creation and editing pages. This method can even be used for reports.