check that participation buy date is before 2020-01-01 ! (timestamp column on mysql)

This commit is contained in:
Jérémy Munsch 2021-07-07 17:24:24 +02:00
parent 814a6c00e9
commit 4cd7eea51f

View file

@ -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',