feat: [ItemMaster] ItemPage 생성 시 동일 item_type 중복 방지 로직 추가
- ItemPageService::store()에서 동일 tenant_id + item_type + is_active 조합 중복 검증 - ItemPageStoreRequest에 Rule::unique 검증 추가 (tenant_id 범위 한정) - 에러 메시지 키 추가: error.item_page_duplicate_item_type (ko/en)
This commit is contained in:
@@ -83,6 +83,7 @@
|
||||
'code_exists_in_deleted' => 'The same code exists in deleted data. Please permanently delete that code first or use a different code.',
|
||||
|
||||
// Item type validation
|
||||
'item_page_duplicate_item_type' => 'A page with the same item type already exists.',
|
||||
'item_type_required' => 'Item type (item_type) is required.',
|
||||
'item_type_or_group_required' => 'Item type (item_type) or group ID (group_id) is required.',
|
||||
'invalid_item_type' => 'Invalid item type.',
|
||||
|
||||
Reference in New Issue
Block a user