From 8298aaf4fc3e944a1af8e6176a9e43030fb8f50a Mon Sep 17 00:00:00 2001 From: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> Date: Wed, 7 Feb 2024 22:43:21 +0000 Subject: [PATCH] Minor refactor Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> --- src/Requests/CouponRequest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Requests/CouponRequest.php b/src/Requests/CouponRequest.php index 2af5ab8..5770513 100644 --- a/src/Requests/CouponRequest.php +++ b/src/Requests/CouponRequest.php @@ -43,6 +43,10 @@ public function rules() 'min_total' => ['numeric'], 'redemptions' => ['required', 'integer'], 'customer_redemptions' => ['required', 'integer'], + 'customers' => ['nullable', 'array'], + 'customer_groups' => ['nullable', 'array'], + 'customers.*' => ['integer'], + 'customer_groups.*' => ['integer'], 'description' => ['max:1028'], 'validity' => ['required', 'in:forever,fixed,period,recurring'], 'fixed_date' => ['nullable', 'required_if:validity,fixed', 'date'],