feat: client_code 백엔드 자동 생성으로 변경
- ClientStoreRequest: client_code 필수→nullable 변경 - ClientService.store(): 프론트 코드 무시, generateClientCode() 자동 생성 - ClientService.update(): client_code 변경 불가 처리 - 코드 형식: 8자리 영숫자 (예: A3B7X9K2) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -53,7 +53,7 @@ public function rules(): array
|
||||
{
|
||||
return [
|
||||
'client_group_id' => 'nullable|integer',
|
||||
'client_code' => 'required|string|max:50',
|
||||
'client_code' => 'nullable|string|max:50', // 프론트에서 보내도 백엔드에서 자동 생성
|
||||
'name' => 'required|string|max:100',
|
||||
'client_type' => [
|
||||
'nullable',
|
||||
|
||||
Reference in New Issue
Block a user