title: Nested "with()" laravel
body: <p>I'm having issues with some relationships. I have the following situation</p>
  
  <p>Product:   </p>
  
  <pre><code>public function catalogues()
  
   {
       return $this-&gt;belongsToMany('App\Catalogue');
   }
  
  public function category()
  {
      return $this-&gt;belongsTo('App\Category');
  }
  </code></pre>
  
  <p>Category: </p>
  
  <pre><code> public function products()
     {
         return $this-&gt;hasMany('App\Product');
     }
  </code></pre>
  
  <p>Catalogue: </p>
  
  <pre><code>    public function products()
     {
         return $this-&gt;belongsToMany('App\Product');
     }
  </code></pre>
  
  <p>With a single query, I need to get all the categories that have products belonging to a certain catalogue. How can I achieve it? </p>