We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Hi @gravitano,
currently I use the following syntax to find all roles to a user:
DB::table('users')->join('role_user', 'users.id', '=', 'role_user.user_id')->join('roles', 'roles.id', '=', 'role_user.role_id')->select('users.id', 'users.username', 'users.name', 'roles.name as role');
Is there an easier solution ?
Greetings!
Hi @gravitano,
currently I use the following syntax to find all roles to a user:
Is there an easier solution ?
Greetings!