title: How to properly insert time values in mysql using php framework laravel 5.1?
body: <p>Actually, I'm trying to insert some 'time' values in mysql database using laravel 5.1 eloquent. But I'm getting that ZERO time error.</p>
  
  <p>I insert some time, like '06:55:00' and in the database shows '00:00:00'.</p>
  
  <p>So, I want to understand the better practices to insert datetime values and avoid this kind of errors.</p>
  
  <p>Here the actual code that I'm working on:</p>
  
  <pre><code>$some_var = ModelClass::create([
                             'time1' =&gt; date('H:m:s', strtotime('06:30:00')),
                             'time2' =&gt; date('H:m:s', strtotime('14:55:00'))
                            ])-&gt;pluck('id');
  </code></pre>
  
  <p>And I got this in the database:</p>
  
  <pre><code>id         |     time1     |      time2     |
   1         |   00:00:00    |    00:00:00    |
  </code></pre>