Answers for "spartie all user with role get laravel"

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
0

spartie all user with role get laravel

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

Code answers related to "spartie all user with role get laravel"

Browse Popular Code Answers by Language