v7.0.0 release

This commit is contained in:
HeuJung committed 2026-07-01 10:30:32 +09:00
1 parent 0e7fa04b03
commit c4ea9a6cd1
3582 files changed
+626189 -160151

No files matched your search

+15
View File
@@ -56,6 +56,21 @@ class RoleRepository implements RoleRepositoryInterface
return Role::where('identifier', $identifier)->first();
}
/**
* 식별자로 역할에 소속된 사용자들을 조회합니다.
*
* 역할이 없거나 소속 사용자가 없으면 빈 컬렉션을 반환합니다.
*
* @param string $identifier 역할 식별자
* @return Collection 역할 소속 사용자 컬렉션
*/
public function getUsersByIdentifier(string $identifier): Collection
{
$role = Role::where('identifier', $identifier)->first();
return $role ? $role->users()->get() : new Collection;
}
/**
* 새로운 역할을 생성합니다.
*