title: Call to undefined method Illuminate\Database\Query\Builder::withAccessToken()
body: <p>This error has come up when I use postman with the api.php file.</p>
  
  <p>Using the documentation example of Laravel 5.4 here is the code in the file.</p>
  
  <pre><code>Route::get('/user', function (Request $request) {
  return $request-&gt;user() ; })-&gt;middleware('auth:api');
  </code></pre>
  
  <p>In postman I have these settings.
  <a href="https://i.stack.imgur.com/T4HgU.png" rel="noreferrer"><img src="https://i.stack.imgur.com/T4HgU.png" alt="Image of postman with accept and Auth settings "></a></p>
  
  <p>It seems really unusual to have these errors as HasApiTokens are in the relevant Models, so what is the problem? </p>