@@ -49,6 +49,7 @@ class RoleRepository extends BaseRepository
...
@@ -49,6 +49,7 @@ class RoleRepository extends BaseRepository
config('access.roles_table').'.name',
config('access.roles_table').'.name',
config('access.roles_table').'.all',
config('access.roles_table').'.all',
config('access.roles_table').'.sort',
config('access.roles_table').'.sort',
config('access.roles_table').'.status',
DB::raw("GROUP_CONCAT( DISTINCT permissions.display_name SEPARATOR '<br/>') as permission_name"),
DB::raw("GROUP_CONCAT( DISTINCT permissions.display_name SEPARATOR '<br/>') as permission_name"),
DB::raw('(SELECT COUNT(role_user.id) FROM role_user LEFT JOIN users ON role_user.user_id = users.id WHERE role_user.role_id = roles.id AND users.deleted_at IS NULL) AS userCount'),
DB::raw('(SELECT COUNT(role_user.id) FROM role_user LEFT JOIN users ON role_user.user_id = users.id WHERE role_user.role_id = roles.id AND users.deleted_at IS NULL) AS userCount'),