title: Laravel Find and first not working together properly
body: <p>In my function show in my employeeController is displaying the wrong id details of the view. What can be the be ideal solution other than using first()?</p>
  
  <p>If I am just going to use the</p>
  
  <pre><code>$employee = Employee::find($id);
  </code></pre>
  
  <p>it will work but it will not display "company" details</p>
  
  <p>but if I used the</p>
  
  <pre><code>$employee = Employee::find($id)-&gt;with('company')-&gt;first();
  </code></pre>
  
  <p>it will retrieve the first id and will not make use of the <code>find($id)</code></p>
  
  <p>I expect to output the id 9 but it keptgiving me the id 8 because of the <code>first()</code> in my controller.</p>