roles property
Resolves all roles attached to this user through the user/role pivot table.
Example:
final roles = await user.roles;
print(roles.length);
Implementation
Future<List<Role>> get roles async {
return await belongsToMany<Role>(table: UserRolePivotTable());
}