title: Laravel: belongsToMany with additional fields
body: <p>Object <code>Page</code> has any number of <code>Widgets</code> and every <code>Page-Widget</code> pair has special options (for example, position, custom title). </p>
  
  <p>I just made</p>
  
  <pre><code>class Page extends Model {
      public function widgets(){
          return $this-&gt;belongsToMany('App\Widget');
      }
  }
  ...
  class Widget extends Model {
  }
  </code></pre>
  
  <p>I added more columns to <code>page_widget</code> table (position, settings...).</p>
  
  <p>How could I access/update them via <code>$page-&gt;widget-&gt;position</code>? I also need ability to get page widgets sorted by that <code>position</code>.</p>
  
  <p>Please suggest Model relations. Thanks.</p>