title: Retrieving relationships from relationships in Laravel
body: <p>I have an application using Laravel 7. Within it, I have an "Account" model, this model has several "Profiles" and each "Profile" has several "Products".</p>
  
  <p>How can I retrieve all the "Products" attached to certain "Accounts" in an optimal way.</p>
  
  <p>Currently, I load all the "Profiles" linked to this "Account" and then all the "Products" linked to each "Profile". But I don't find this very optimized and have difficulties in sorting the returned data (in descending order).</p>
  
  <p>I'm sure that Eloquent / Laravel allows to recover this directly, but I don't know how.</p>
  
  <p>Thanks to you !</p>