title: Alias an Eloquent relationship when eager loading
body: <p>Is there a way to alias a Eloquent relationship when eager loading?  For example, I might have a query such as the following.</p>
  
  <pre><code>User::with(['roles' =&gt; function ($query) { $query-&gt;where('type', ADMIN); }]);
  </code></pre>
  
  <p>But what if I also want to eager load roles with a status of ACTIVE?  The only way I can think of doing it is to duplicate the roles relationship on the User model and give it a different name.  The query would then look something like the following.</p>
  
  <pre><code>User::with([
    'roles' =&gt; function ($query) { $query-&gt;where('type', ADMIN); },
    'otherRoles' =&gt; function ($query) { $query-&gt;where('status', ACTIVE) }]
  );
  </code></pre>
  
  <p>I could have methods such as <code>adminRoles</code> and <code>activeRoles</code> on my user model, but that's really not what I am looking for as there are so many possible parameters.</p>