Laravel 5 date_format validation does not validate
<p>here is input value : <code>FIRST_TIME_ARRIVAL_DATE_AT_DAW : 2016-21-5 17:21:35</code> here is validation rule :</p>

<pre><code>public static $createRules = [
      'FIRST_TIME_ARRIVAL_DATE_AT_DAW' =&gt; 'date_format:"Y-m-d H:i:s"',
];
</code></pre>

<p>and it doesn't validatate, it return : </p>

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

<p>EDIT:
here is what my controller looks like:</p>

<pre><code>$validator = Validator::make($request-&gt;all(),BatteryAssets::$createRules);
        if ($validator-&gt;fails()) {
            return ['success' =&gt; 0, 'data' =&gt; 'Input error','errors' =&gt; $validator-&gt;messages()-&gt;toJson()];
        }
</code></pre>

<p>so <code>$validator-&gt;messages()-&gt;toJson()</code> return the validation error</p>