ldc-boutique-cnc-sable/app/Http/Requests/Bo/PickupExceptions/UpdatePickupExceptionRequest.php

23 lines
694 B
PHP
Raw Permalink Normal View History

2026-06-14 21:32:07 +02:00
<?php
declare(strict_types=1);
namespace App\Http\Requests\Bo\PickupExceptions;
use App\Actions\PickupExceptions\UpdatePickupExceptionInput;
use App\Models\PickupException;
2026-06-14 21:32:07 +02:00
class UpdatePickupExceptionRequest extends StorePickupExceptionRequest
{
public function toUpdatePickupExceptionInput(PickupException $pickupException): UpdatePickupExceptionInput
{
return new UpdatePickupExceptionInput(
pickupException: $pickupException,
date: $this->string('date')->value(),
label: $this->string('label')->value(),
repeatable: $this->boolean('repeatable'),
repeat_frequency: $this->toRepeatFrequency(),
);
}
2026-06-14 21:32:07 +02:00
}