title: laravel mongo db get data time as date in paginate
body: <p>when i want get embed traffics  model , API respond publish wrong date format for embed model , and use <code>protected $dates = ['updated_at','created_at'];</code>
  in my Traffic model but don't work and response still emitted wrong date and id format </p>
  
  <p><strong>note:</strong> when i use <code>get()</code> instead of <code>simplePaginate()</code> or <code>paginate()</code> query builder emitted right json format  !!!!!</p>
  
  <p><strong>db:</strong>
  <a href="https://i.stack.imgur.com/W0Syl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/W0Syl.png" alt="enter image description here"></a></p>
  
  <p><strong>paginate API respond:</strong></p>
  
  <pre><code>{
  "current_page": 1,
  "data": [
  
              {
                  "lat": 59.56555555455,
                  "lon": 35.54598994564,
                  "type": "manual",
                  "updated_at": {
                      "$date": {
                          "$numberLong": "1540712586000"
                      }
                  },
                  "created_at": {
                      "$date": {
                          "$numberLong": "1540712586000"
                      }
                  },
                  "_id": {
                      "$oid": "5bd5688a6925020c34006773"
                  }
              }//.....
        ]
      }
  </code></pre>
  
  <p><strong>get() API respond:</strong></p>
  
  <pre><code>[
  {
      "lat": 59.56555555455,
      "lon": 35.54598994564,
      "type": "manual",
      "updated_at": "2018-10-28 07:43:06",
      "created_at": "2018-10-28 07:43:06",
      "_id": "5bd5688a6925020c34006773"
  },
  {
      "lat": 59.56555555455,
      "lon": 35.54598994567,
      "type": "system",
      "updated_at": "2018-10-28 07:43:06",
      "created_at": "2018-10-28 07:43:06",
      "_id": "5bd5688a6925020c34006774"
  }/...
  ]
  </code></pre>
  
  <p><strong>code</strong></p>
  
  <pre><code>     $userTrafic = Auth::user()-&gt;userTraffic()-&gt;firstOrFail();
       if ($userTrafic) {
         return   $userTrafic-&gt;traffics()-&gt;orderBy('updated_at', 'desc')-&gt;simplePaginate(20); //or get()
      }
      else  return response(['status' =&gt; false, 'message' =&gt; 'traffic\'s user not found'], 404);
  </code></pre>