2026-01-08 20:17:40 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Http\Requests\Order;
|
|
|
|
|
|
|
|
|
|
use Illuminate\Foundation\Http\FormRequest;
|
|
|
|
|
|
|
|
|
|
class CreateFromQuoteRequest extends FormRequest
|
|
|
|
|
{
|
|
|
|
|
public function authorize(): bool
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function rules(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'delivery_date' => 'nullable|date',
|
|
|
|
|
'memo' => 'nullable|string',
|
2026-03-17 13:55:28 +09:00
|
|
|
'delivery_method_code' => 'nullable|string',
|
|
|
|
|
'options' => 'nullable|array',
|
|
|
|
|
'options.receiver' => 'nullable|string',
|
|
|
|
|
'options.receiver_contact' => 'nullable|string',
|
|
|
|
|
'options.shipping_address' => 'nullable|string',
|
|
|
|
|
'options.shipping_address_detail' => 'nullable|string',
|
|
|
|
|
'options.shipping_cost_code' => 'nullable|string',
|
2026-01-08 20:17:40 +09:00
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function messages(): array
|
|
|
|
|
{
|
|
|
|
|
return [
|
|
|
|
|
'delivery_date.date' => __('validation.date', ['attribute' => '납품일']),
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
}
|