> 검증 규칙 */ public function rules(): array { return [ 'type' => ['nullable', 'string', 'max:50'], ]; } /** * 배송사 유형 필터를 반환합니다. * * @return string|null 유형 (미지정 시 null) */ public function type(): ?string { $type = $this->validated('type'); return $type === null ? null : (string) $type; } }