spatie permissions eloquent query 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"]); })