DS
is there a way to use spatie roles with teams id and filament multenancy on V3 ?
i dont think that will be the best solution @BKF Dev because in that solution to the problem its not related to this one... it would be a work around but not solves my problem, anyway thanks for sharing this here...
122 replies
is there a way to use spatie roles with teams id and filament multenancy on V3 ?
as a suggestion we can add the company_id to the roles and use a custom HasRoles trait to change the roles for each company ... if i can make it work i would make a PR to filament hoping it works for someone else, i really like filament and i want to somehow be able to contribute something. Thanks for your help.
122 replies
is there a way to use spatie roles with teams id and filament multenancy on V3 ?
if i remove the teams functionality from spatie everything work as spected but i really need to use spatie roles teams functionality with filament any help will be really appreciated
122 replies
is there a way to use spatie roles with teams id and filament multenancy on V3 ?
I understand and I thank you for the explanation, but in my case I need the role by team, for example, a role can exist in a team (company in my case) but not in another. That is why I need it, until now I have made it work only when I want to "attach" a role to a user, the role relationship manager returns only those that have been related to that team regardless of whether they belong to that team or not.
@JamesAutoDude
when i do
`
i got
SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'company_id' in where clause is ambiguous
122 replies