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