DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+7 =
Submit