title: Laravel Eloquent using an alias with the with() function
body: <p>Good day. Is it possible to use an alias name when using the with() function in laravel? For an example:</p>
  
  <pre><code>$posts = Post::where(/*condition*/)-&gt;with('user as friend')-&gt;get();
  </code></pre>