RT2023
RT2023
Explore posts from servers
TLCTuto's Laravel Corner
Created by RT2023 on 1/28/2024 in #💡filament
group by tenant
Hi Tuto, I need to show on my table a group by tenant. this group will be applied for the userResource. If i have one tenant assigned to each user the group works well. However if an user belongs to two or more tenants , i get an error. SQLSTATE[21000]: Cardinality violation: 1242 Subquery returns more than 1 row. Any help is appreciated. thanks
4 replies
TLCTuto's Laravel Corner
Created by RT2023 on 9/17/2023 in #💡filament
Multi-tenancy for a filament page
Hi there. I have an app with multi-tenancy and it is working well with all the resources in such panel. For one resource, I had to create a new filament page (not associated with the resource) to do some simple mathematical operations. Sum of total columns and division to calculate percentages. this works great as well. The issue I have is that I cant filter the calculations by tenant. It just add all the values in the table . Can someone provide any advise please?
7 replies
TLCTuto's Laravel Corner
Created by RT2023 on 9/9/2023 in #💡filament
Render data from two resources
Is there a way to render data in a form from two different resources (tables or models) without a relationship between them? Thanks
8 replies