Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

get users other than specific role laravel role spatie

User::query()->whereHas("roles", function($q){ $q->whereNotIn("name", ["superadmin"]); })
 
PREVIOUS NEXT
Tagged: #users #specific #role #laravel #role #spatie
ADD COMMENT
Topic
Name
8+7 =