title: Laravel 5.7. Subtract model instances
body: <p>I have 2 collections of models. </p>
  
  <p>For example</p>
  
  <pre><code>$full = collect([
      [
          'name' =&gt; 'name1',  //id was omitted intentionally
      ],
      [
          'name' =&gt; 'name2', //id was omitted intentionally
      ],
      [
          'name' =&gt; 'name3', //id was omitted intentionally
      ],
  ]);
  
  $diff = collect([
      [
          'id'   =&gt; 6,
          'name' =&gt; 'name1',
      ],
  ]);
  </code></pre>
  
  <p>and I want to receive such a result after something like this</p>
  
  <pre><code>$full-&gt;diff($full);
  
  $result = [
      [
          'name' =&gt; 'name2',
      ],
      [
          'name' =&gt; 'name3',
      ],
  ];
  </code></pre>
  
  <p>How to achieve that <em>without</em> <code>filter()</code> or <code>reject()</code> with <code>contains()</code> in a neater way?</p>