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"]); })
Source by spatie.be #
 
PREVIOUS NEXT
Tagged: #users #specific #role #laravel #role #spatie
ADD COMMENT
Topic
Name
1+5 =