retrieve users relevant to the role type laravel spatie code example
Example: get users other than specific role laravel role spatie
User::query()->whereHas("roles", function($q){ $q->whereNotIn("name", ["superadmin"]); })
User::query()->whereHas("roles", function($q){ $q->whereNotIn("name", ["superadmin"]); })