title: Carbon.php The separation symbol could not be found Data missing
body: <p>First, I retrieve all the records,</p>
  
  <pre><code>//get inventory items
  $inv = inventory::all();
  </code></pre>
  
  <p>and then I loop on the retrieved records and modify the created_at and updated_at data to make it more human readable date.</p>
  
  <pre><code>foreach($inv as $i){
      $i-&gt;created_at = date("M d, Y",strtotime($i-&gt;created_at));
      $i-&gt;updated_at = date("M d, Y",strtotime($i-&gt;updated_at));
  }
  </code></pre>
  
  <p>but it returns me this error,</p>
  
  <blockquote>
    <p>InvalidArgumentException in Carbon.php line 425: Unexpected data
    found. Unexpected data found. The separation symbol could not be found
    Data missing</p>
  </blockquote>
  
  <p>any ideas, help, clues, suggestions, recommendations please?</p>
  
  <p>here's my model</p>
  
  <pre><code>namespace App;
  
  use Illuminate\Database\Eloquent\Model;
  
  class inventory extends Model
  {
      protected $table = "inventory";
      protected $primaryKey = "item_id";
      public $incrementing = false;
  
      public function profile(){
          return $this-&gt;belongsTo('App\profile','username');
      }
      public function inventory_images(){
          return $this-&gt;hasMany('App\inventory_images','item_id');
      }
  }
  </code></pre>
  
  <p>and in blade, I can just use</p>
  
  <pre><code>{{ date("M d, Y",strtotime($i-&gt;created_at)) }}
  
  {{ date("M d, Y",strtotime($i-&gt;updated_at)) }}
  </code></pre>
  
  <p>and it work just fine.</p>