title: Laravel Model protected $dateFormat - How to remove seconds?
body: <p>Platform: Laravel 5.1</p>
  <p>Database: MySQL</p>
  <p>I'm also using Fractal Transformers for transforming my returned data to JSON objects.</p>
  <p>After putting this <code>protected $dateFormat = 'Y-m-d H:i';</code> in my Model(note the missing <code>:s</code>) Carbon is throwing errors:</p>
  <pre><code>exception 'InvalidArgumentException' with message 'Trailing data' in C:\project1\vendor\nesbot\carbon\src\Carbon\Carbon.php:425
  </code></pre>
  <p>According to the documentation this should work: <a href="https://laravel.com/docs/5.1/eloquent-mutators#date-mutators" rel="nofollow noreferrer">https://laravel.com/docs/5.1/eloquent-mutators#date-mutators</a></p>
  <p>I've tried the following:</p>
  <ul>
  <li>Change my MySQL table structure from <code>TIMESTAMP</code> to <code>DATETIME</code>- no change</li>
  <li>Changing the returned value with <code>substr($time, 0, -3)</code> - got errors</li>
  <li>Asking in Gitter for help, got this:</li>
  </ul>
  <blockquote>
  <p>I might be using a different Persistence that doesn't use the MySQL format</p>
  <p><em>What does this mean?</em></p>
  </blockquote>
  <p>How do I make sure <code>Carbon::now()</code> or MySQL is creating timestamps without seconds?</p>
  <p>OR</p>
  <p>How do I return only <code>Y-m-d H:i</code>?</p>