From 4cd7eea51fcade919c3bc680ea861bd7dc7b3537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Wed, 7 Jul 2021 17:24:24 +0200 Subject: [PATCH] check that participation buy date is before 2020-01-01 ! (timestamp column on mysql) --- app/Http/Requests/ParticipationRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Requests/ParticipationRequest.php b/app/Http/Requests/ParticipationRequest.php index 44b625b..82580a3 100644 --- a/app/Http/Requests/ParticipationRequest.php +++ b/app/Http/Requests/ParticipationRequest.php @@ -28,7 +28,7 @@ class ParticipationRequest extends FormRequest { return [ 'magasin' => 'required|exists:magasins,id', - 'buydate' => 'required|date_format:Y-m-d|before:' . Carbon::now()->addDay()->format('Y-m-d'), + 'buydate' => 'required|date_format:Y-m-d|after:2020-01-01|before:' . Carbon::now()->addDay()->format('Y-m-d'), 'ean' => [ 'required', 'numeric',