Get all sortable columns of table
Hi, I'm trying to create some automated tests. So basically I want to execute all these tests (https://filamentphp.com/docs/3.x/tables/testing), but I'm trying to automate them.
Now I'm wondering how I could get all the columns of my table which I specified with ->sortable() in my resource.
Than I can just create a loop and execute my tests based on the fields.
6 Replies
Did you figure it out?
No, unfortunately not
that will just get all columns though and not all sortable columns, right? Probably like us, wants to make sure sorting a column or searching on a table doesnt throw any errors.
Solution
Awesome, thanks! π