abirone
318
2
Spark

How do I get all users on a team with a specific role?

Posted 3 months ago by abirone

I have two Roles in my SparkServiceProvider;

Spark::useRoles([  
  'owner' => 'Owner',  
  'professional' => 'Professional',
]);

I need the ability to fetch all members of the current team with the "professional" role. I can't find any example of this in the Spark documentation.

Thanks in advance!

Please sign in or create an account to participate in this conversation.