samedi 1 octobre 2016

Laravel 5 date_format validation does not validate

here is input value : FIRST_TIME_ARRIVAL_DATE_AT_DAW : 2016-21-5 17:21:35 here is validation rule :

public static $createRules = [
      'FIRST_TIME_ARRIVAL_DATE_AT_DAW' => 'date_format:"Y-m-d H:i:s"',
];

and it doesn't validatate, it return :

{"CELLS_EXPIRY_DATE":["The FIRST TIME ARRIVAL DATE AT DAW does not match the format Y-m-d H:i:s."]



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

Aucun commentaire:

Enregistrer un commentaire