Answers for "get users other than specific role laravel role spatie"

PHP
2

get users of specific role laravel role spatie

$users = User::role('writer')->get();
Posted by: Guest on September-26-2020
0

get users other than specific role laravel role spatie

User::query()->whereHas("roles", function($q){ $q->whereNotIn("name", ["superadmin"]); })
Posted by: Guest on September-26-2020

Code answers related to "get users other than specific role laravel role spatie"

Browse Popular Code Answers by Language