mercredi 21 mars 2018

Validate datetime-local input

According to MDN, I should use datetime-local type for a date and a time input:

<input type="datetime-local">

I can validate a date in laravel with this code (in a controller):

$this->validate($request, ['my_date' => 'required|date']);

But is there a way to validate a datetime-local?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2FZcTV1
via IFTTT

Aucun commentaire:

Enregistrer un commentaire