get a specific user role with 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"]); })