Skip to content

Commit

Permalink
Add rule uitpas agreement
Browse files Browse the repository at this point in the history
  • Loading branch information
vhande committed Jun 26, 2024
1 parent a0eb563 commit 46de828
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace App\Domain\Integrations\FormRequests;

use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;

final class StoreIntegrationRequest extends FormRequest
{
Expand All @@ -26,6 +27,7 @@ public function rules(): array
'lastNameTechnicalContact' => ['required', 'string', 'max:255'],
'emailTechnicalContact' => ['required', 'string', 'email', 'max:255'],
'agreement' => ['required', 'string'],
'uitpasAgreement' => [Rule::requiredIf($this->input('integrationType') === 'uitpas'), 'nullable', 'string'],
'coupon' => ['nullable', 'string'],
];
}
Expand Down

0 comments on commit 46de828

Please sign in to comment.