I want the last two roles connecting to the same dashboard which is the company dashboard from there role according to there company not to other companies how can I do that ??
I want only the customer role and staff role access to their company dashboard only not the main dashboard for the admin and according to their company only their company dashboard not other companies dashboard
that's what I mean exactly can't make them access to other companies dashboard
no that's not not what I mean
look when I create a user with role customer or staff they both of them work for only one company so I want them access to the information for only and only that company not the others company ok ???
is it clear now or not ??
In that case, they will still be redirected to the same dashboard. Just that on that dashboard, you will use the company_id (as an example) to get the actual content for that company hence the user will see only its company content.