$user->getRoleNames()
$users = User::role('writer')->get();
$user->assignRole('writer');
// You can also assign multiple roles at once
$user->assignRole('writer', 'admin');
// or as an array
$user->assignRole(['writer', 'admin']);
$role->givePermissionTo($permission);
$permission->assignRole($role);
User::query()->whereHas("roles", function($q){ $q->whereNotIn("name", ["superadmin"]); })
User::whereHas("roles", function($q){ $q->where("name", "Member"); })->get()
$role->syncPermissions($permissions);
$permission->syncRoles($roles);