title: PHP: Laravel how to eager load find method
body: <p>I have a model <code>Users</code> which has-many <code>Pages</code>, I want to eager load the method below so that it returns only a single user with all the pages eager loaded, how do I go about it.</p>
  
  <pre><code>$user = User::find(1);
  $pages = $user-&gt;pages();
  foreach($pages as $page) {
    var_dump($page-&gt;name);
  }
  </code></pre>
  
  <p>What I tried but doesnt work, it loads everything instead:</p>
  
  <pre><code>$user = User::with('Pages')-&gt;get();
  $pages = $user-&gt;pages();
  </code></pre>