📜  spartie all user with role get laravel - PHP 代码示例
📅  最后修改于: 2022-03-11 14:53:54.578000             🧑  作者: Mango
代码示例3
User::query()->whereHas("roles", function($q){ $q->whereNotIn("name", ["superadmin"]); })->get()