title: Unable to sync conditional pivot table many to many relationship laravel
body: <p>I have 2 models : <code>Tours.php</code></p>
  
  <pre><code> public function includes()
  {
      return $this-&gt;belongsToMany('App\Included');
  }
  </code></pre>
  
  <p><code>Included.php</code></p>
  
  <pre><code>public function tours()
  {
      return $this-&gt;belongsToMany('App\Tour');
  }
  </code></pre>
  
  <p>and below code in my <code>TourController.php</code> <code>store</code> method:</p>
  
  <pre><code>if (isset($request-&gt;includeds) &amp;&amp; isset($request-&gt;excludeds)) {
        $tour-&gt;includes()-&gt;sync($request-&gt;includeds, false);
        $tour-&gt;excludes()-&gt;sync($request-&gt;excludeds, false);
  }
  </code></pre>
  
  <p>when i do <code>dd($request-&gt;includeds);</code> I can see the coming values from the form but unable to sync it in my pivot table <code>included_tour</code> while the code syncs <code>excluded_tour</code> without any error.</p>