title: Laravel - Call to undefined method Illuminate\Database\Query\Builder::user()
body: <p>I am busy with <a href="https://laracasts.com/series/laravel-5-from-scratch/episodes/10" rel="noreferrer">Laravel From Scratch: Updating Records and Eager Loading</a>. I have followed the tut but I am getting this error when trying to add user data in CardsController. I am assuming that I've missed a step in the card user relationship somewhere but I've watched the video 3 times and my database queries for User, Card &amp; Note matches the video exactly.</p>
  
  <p>Is there another step I need to perform after creating the Users table via the migration perhaps?</p>
  
  <p><strong>Error</strong></p>
  
  <pre><code>BadMethodCallException in Builder.php line 2345:
  </code></pre>
  
  <p>Call to undefined method Illuminate\Database\Query\Builder::user()</p>
  
  <p><strong>CardsController code</strong></p>
  
  <pre><code>&lt;?php
  namespace App\Http\Controllers;
  use App\Card;
  use Illuminate\Http\Request;
  use App\Http\Controllers\Controller;
  
  class CardsController extends Controller
  {
      public function index()
      {
          $cards = Card::all();
          return view('cards.index', compact('cards'));
      }
  
      public function show(Card $card)
      {
          $card = Card::with('notes.user')-&gt;get();
          return $card;
          return view('cards.show', compact('card'));
      }
  }
  </code></pre>