['nullable', 'string', 'max:30'], 'order_date' => ['nullable', 'date'], 'item_code' => ['sometimes', 'string', 'max:50'], 'item_name' => ['sometimes', 'string', 'max:200'], 'specification' => ['nullable', 'string', 'max:200'], 'supplier' => ['sometimes', 'string', 'max:100'], 'order_qty' => ['sometimes', 'numeric', 'min:0'], 'order_unit' => ['nullable', 'string', 'max:20'], 'due_date' => ['nullable', 'date'], 'status' => ['sometimes', 'string', 'in:order_completed,shipping,inspection_pending,receiving_pending'], 'remark' => ['nullable', 'string', 'max:1000'], ]; } public function messages(): array { return [ 'order_qty.numeric' => __('validation.numeric', ['attribute' => '발주수량']), 'order_qty.min' => __('validation.min.numeric', ['attribute' => '발주수량', 'min' => 0]), ]; } }