Treebeard
Treebeard
FFilament
Created by Treebeard on 10/25/2024 in #❓┊help
Save column visibility in user preferences
Column visibility works great, but is lost between sessions. It would be awesome if there were some kind of callback or event that is triggered when a column's visibility changes. That way I could save the users table preferences and reload the next time they login. Is this possible?
4 replies
FFilament
Created by Treebeard on 4/26/2024 in #❓┊help
How to store customizations to columns in a table view between sessions?
I'm using FilamentPHP and have a table. The user can customize the table columns, but the settings only stay for that session. If the user logs out and logs back in, the columns are back to the default. How do I get them to stick?
3 replies
FFilament
Created by Treebeard on 1/20/2024 in #❓┊help
Badge on content tabs
No description
4 replies
FFilament
Created by Treebeard on 1/19/2024 in #❓┊help
Sorting a custom attribute
How would one add a sortable() column that is pointing to an attribute of a model? It shows up fine, but throws an error on sort because the column doesn't exist. As a contrived example: Say I have a "Company" model, which hasMany "CompanyClient"s. On the "Company", there is an attribute called "has_company_clients" which is a boolean. The Filament IconColumn is used to show whether the company has clients or not. I want this column to be sortable
3 replies
FFilament
Created by Treebeard on 1/18/2024 in #❓┊help
Clean up verbosity of Filament form
Hello everyone, I have a fairly complex form with many layouts and repeaters. The "form" method of my resource is very verbose and indented. I find it challenging sometimes to read. Therein lies my question, are there any standard practices around cleaning up the "form()"? For instance, moving a section to a separate method. Thanks in advance
5 replies