Intégration reservations et mock lavage
This commit is contained in:
@@ -15,7 +15,8 @@ class StartWashRequest extends FormRequest
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'machine_uuid' => ['required', 'uuid', 'exists:machines,uuid'],
|
||||
'machine_uuid' => ['required_without:qr_code', 'nullable', 'uuid', 'exists:machines,uuid'],
|
||||
'qr_code' => ['required_without:machine_uuid', 'nullable', 'string', 'max:255', 'exists:machines,qr_code'],
|
||||
'booking_uuid' => ['nullable', 'uuid', 'exists:bookings,uuid'],
|
||||
'trigger_method' => ['required', Rule::in(['qr_code', 'booking', 'supervisor', 'system'])],
|
||||
'program' => ['nullable', 'string', 'max:100'],
|
||||
|
||||
Reference in New Issue
Block a user