From 38d58f0354e71e449120fd34a38a118073200118 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 9 Sep 2018 20:40:26 +0200 Subject: [PATCH] Fix #1670 --- app/Api/V1/Requests/PiggyBankRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Api/V1/Requests/PiggyBankRequest.php b/app/Api/V1/Requests/PiggyBankRequest.php index 30bf4e8dfe0..3024b0eac9e 100644 --- a/app/Api/V1/Requests/PiggyBankRequest.php +++ b/app/Api/V1/Requests/PiggyBankRequest.php @@ -77,7 +77,7 @@ public function rules(): array 'target_amount' => 'required|numeric|more:0', 'current_amount' => 'numeric|more:0|lte:target_amount', 'start_date' => 'date|nullable', - 'target_date' => 'date|nullable', + 'target_date' => 'date|nullable|after:start_date', 'notes' => 'max:65000', ];