'required|string|max:255', 'item_type' => [ 'required', 'in:FG,PT,SM,RM,CS', Rule::unique((new ItemPage)->getTable(), 'item_type') ->where('tenant_id', $tenantId) ->where('is_active', true) ->whereNull('deleted_at'), ], 'absolute_path' => 'nullable|string|max:500', ]; } public function messages(): array { return [ 'item_type.unique' => __('error.item_page_duplicate_item_type'), ]; } }