Skip to content

Multi-tenancy : Fixed Roles and Permissions #244

Answered by BartMommens
BartMommens asked this question in Q&A
Discussion options

You must be logged in to vote

@masterix21 When i write my queries manually in Sequel PRO i get results:

I think it's somekind of Laravel issue on belongstomany:

What ever i throw at it it keeps on looking in the current connection:

fs_rp_mt_tenant_01.tenant_roles

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'fs_rp_mt_tenant_01.tenant_roles' doesn't exist (SQL: select tenant_roles.*, model_has_roles.role_id as pivot_role_id, model_has_roles.model_id as pivot_model_id from tenant_roles inner join model_has_roles on tenant_roles.id = model_has_roles.model_id where model_has_roles.role_id = 1

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
1 reply
@BartMommens
Comment options

Comment options

You must be logged in to vote
4 replies
@BartMommens
Comment options

@BartMommens
Comment options

@BartMommens
Comment options

@BartMommens
Comment options

Comment options

You must be logged in to vote
2 replies
@BartMommens
Comment options

@BartMommens
Comment options

Answer selected by BartMommens
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants