Can you provide the form input code ?
Apr 20, 2017
4
Level 7
Text date validation
I'm trying to use text dates, but Laravel date validation always fails despite the documentation:
dateThe field under validation must be a valid date according to thestrtotimePHP function.
My validation rules:
'start' => 'sometimes|required|date',
'end' => 'sometimes|required|date|after:start',
All my attempts to use text dates which are valid dates for strtotime parser result in "The start is not a valid date." For example, last Monday or yesterday.
Can anybody tell why does this happen?
Please or to participate in this conversation.