Trouble trying to summarize
in my members table resource im trying to coun how many id_test i have
what im trying:
what i get afaik i go to the table in the frontend:
i've found the issue but idk how to solve it.
my
Member
model uses this as table name protected $table = 'bgcrm.members';
, and i cannot change it. but if i change it to:
protected $table = 'members';
, it works
i cannot change it cuz i need it to make relationships to work when working with relationships between different databases. if i change it to protected $table = 'members';
then some relationships wont work cuz they'll search on their default db database, and i need them to search in bgcrm database3 Replies
bump
Not sure I can help much as I haven't delved into summaries yet.
This may not be the right solution but have a look at custom summaries:
https://filamentphp.com/docs/3.x/tables/summaries#custom-summaries
Using this you maybe able to make your own query:
Hope it helps
thanks for the response. but yeah im getting the same error :I