Meta
Need Help with Filament Table SelectFilter Integer Conversion
Hi everyone,
I'm currently working on a Filament Table and utilizing a SelectFilter for my application. However, I've encountered a challenge that I'm hoping to get some insights or solutions for. The issue arises when I apply the filter; it seems that the value passed by the SelectFilter to query the database is treated as a string. This behavior mismatches with my database field type, which expects an integer, and as a result, it significantly slows down the search operation.
I'm looking for a way to ensure that the value from the SelectFilter is converted to an integer before it's used in the database query. I believe there must be a method or a step I'm missing to perform this conversion seamlessly within the Filament framework.
Has anyone here faced a similar issue or knows how to tackle this problem? Any guidance, code snippets, or resources you could share would be greatly appreciated. I'm eager to learn the best practices for handling this type of data type conversion within the Filament ecosystem.
2 replies
getEloquentQuery custom builder
Greetings fellows, need your help to integrate https://clickhouse.com into my laravel project inside filament table builder, but unfortunately the package its use for the eloquent driver is different with the filament, im using this package as the eloquent bavix/laravel-clickhouse and clickhouse as the connection. but since the package use custom builder i cannnot integrate it with filament table.
any idea guys?
5 replies
Custom data
Hello everyone, I hope you're doing well. I have a question that might be slightly off-topic, but I was wondering if there's any way to use a custom array or a dynamically populated data source from an API to display a table. As you may know, the current filament table is only supported for Eloquent Builder, and although I have used the Sushi package to prepopulate data, it is too static for my needs.
Therefore, I was wondering if any of you have an alternative solution to display a table with custom data. Thank you very much in advance!
3 replies