Laravel filament and resource have the same model and data is in two different tables as is_admin = 0 and is_admin = 1 and I need to list, how can I do this in the same user table with the filament.
I used custom page but I couldn’t make tables and listings with it.
2
Answers
You could override the
getEloquentQuery
method inside of your resource. For instance:This is a query builder interface, so you could join data to your query aswell.
This piece of code
was what I had been looking for