title: Laravel not retrieving milliseconds in DateTime columns
body: <p>In Laravel, I have some columns with milliseconds. Note that some other columns do not have milliseconds (e.g. <code>created_at</code>, <code>updated_at</code>).</p>
  
  <p>Here is my migration:</p>
  
  <pre><code>Schema::create('brands', function (Blueprint $table) {
      $table-&gt;increments('id');
      $table-&gt;dateTime('sync_date_time', 3);
      $table-&gt;timestamps();
  });
  </code></pre>
  
  <p>My model is simply:</p>
  
  <pre><code>class Brand extends Model {}
  </code></pre>
  
  <p>Yet when I have a record with milliseconds (e.g. <code>2018-12-19 01:40:46.512</code>) , and execute:</p>
  
  <pre><code>$brand-&gt;sync_date_time;
  </code></pre>
  
  <p>It always returns a string without the milliseconds portion (e.g. <code>2018-12-19 01:40:46</code>).</p>
  
  <p>Why is this happening, and how can I fix this issue?</p>
  
  <p>Note that this is not a Carbon issue, as I am not using Carbon for this field at all.</p>
  
  <p>I saw a similar question here:</p>
  
  <p><a href="https://stackoverflow.com/questions/31227069/laravel-timestamps-to-show-milliseconds">Laravel timestamps to show milliseconds</a></p>
  
  <p>that claims this is in fact a PDO issue and suggest using a string or timestamp. But it's quite an old answer, so I was hoping there is a better answer.</p>