Fred
Fred
FFilament
Created by Fred on 6/26/2024 in #❓┊help
Filament json column
I have a json column in my database table which stores the foreign keys, the field name is cast as array on the model. I am using multiple select with a relationship and the record get saved as expected. However, I don't know how to show them on the table using the relationship. When I use the table column name I get the stored IDs. When I use the relationship name I get all the related records in a json format, how do I get the name key from this {"id":1,"name":"People"}
3 replies
FFilament
Created by Fred on 5/10/2024 in #❓┊help
How to Prevent Laravel filament table in a resource from loading until a filter action is initiated
I have a database table with a lot of data. I don't want to load all the data into the table in a resource. I want to prevent the table in a resource from loading data as it is done by default in filament resource. I want to use a table filter to rather load the table content. I want the page to behave like a search page with criteria. How do I get this done without creating a custom page? I thought using the deferLoading() would solve the problem but it didn't. I tried to modify the table query which did what i wanted but i realized that when a filter is applied it doesn't get a data although it exists. I checked and noticed that filters append it query to the table query. So this couldn't solve the problem
3 replies
FFilament
Created by Fred on 5/8/2024 in #❓┊help
Prevent the table in a resource from loading until a filter action is initiated
:fi: I want to prevent the table in a resource from loading data as it is done by default in the resource. I want to use a table filter to rather load the table content. How do I get this done?
2 replies