Atena.D
How to show results of an API in custom page table builder.
Yes but the problem is in a custom page that implements
HasTable
I should return a Builder
type object from getTableQuery
method to show that in a table, that means it should be read from a database although I don't have any database for it and as a result it throws an error saying the result from that URL isn't of type Builder
30 replies
How to show results of an API in custom page table builder.
I think I found an article that might help me https://filamentphp.com/blog/how-to-consume-an-external-api-with-filament-tables
30 replies
Error Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type str
Oh, I think I found the reason. I had some records in user table which their name column was NULL and after I deleted them, it's working but in some cases I might have NULL in the name column because that's nullable so what can I do now?
12 replies
Error Filament\Forms\Components\Select::isOptionDisabled(): Argument #2 ($label) must be of type str
Actually, when I change that to
->relationship('user', 'id')
is works. but in that case it shows me the id of the users but I want their names12 replies