title: Call to undefined method Illuminate\Database\Eloquent\Relations\HasMany::withTimestamps()
body: <p>I am trying to create a relationship in laravel with timestamps. I have this app that allows customers to request a job to a marketplace. When a freelancer on the marketplace finds a job their interested in they propose to complete the job and a new row is queried into the freelancer table. </p>
  
  <p>Here is the code creating the relation: </p>
  
  <pre><code>$marketplace-&gt;freelancers()-&gt;create([
     'request_id' =&gt; $id,
     'user_id' =&gt; $user-&gt;id
  ]);
  </code></pre>
  
  <p>Here is the Marketplace Model relationship code: </p>
  
  <pre><code>    /**
       * A request may have multiple freelancers
       * @return \Illuminate\Database\Eloquent\Relations\HasMany
       */
      public function freelancers()
      {
          return $this-&gt;hasMany('App\Models\MainFreelancers')-&gt;withTimestamps();
      }
  </code></pre>
  
  <p>Here is the Freelancer Model relationship code: </p>
  
  <pre><code>/**
   * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
   */
  public function mainMarketplace()
  {
      return $this-&gt;belongsTo('App\Models\MainMarketplace');
  }
  </code></pre>
  
  <p>When trying to run the very first code block I keep getting this Laravel Error: 
  <code>BadMethodCallException
  Call to undefined method Illuminate\Database\Eloquent\Relations\HasMany::withTimestamps()</code></p>
  
  <p>In the short term, I just manually added a <code>strtotime()</code> but I'd prefer to utilize what Laravel offers. Does anyone have suggestions? </p>
  
  <p>Note I have reference a previous stackoverflow question here: 
  <a href="https://stackoverflow.com/questions/25726602/timestamps-are-not-updating-while-attaching-data-in-pivot-table">Timestamps are not updating while attaching data in pivot table</a>
  But unfortunately it didn't help. </p>