title: Missing argument 1 for Illuminate\Auth\AuthManager::createDriver() lumen and JWT
body: <p>I am trying to implement JWT token in my API using <code>Lumen + JWT</code>. I am using this <a href="https://github.com/tymondesigns/jwt-auth" rel="nofollow">JWT Library</a>, I have set up it, but when I want to validate passed using <code>JWTAuth::attempt($credentials)</code> I get next error  </p>
  
  <pre><code>ErrorException in AuthManager.php line 16:
  Missing argument 1 for Illuminate\Auth\AuthManager::createDriver(), called in /home/admin/web/mkopilka.ru/public_html/api/referral/vendor/illuminate/support/Manager.php on line 87 and defined
  </code></pre>
  
  <p>I know where is the problem, but cannot figure out how to solve it because I don't know internals of framework well.    </p>
  
  <p>I have question about how does JWT authenticate the user (checks credentials in database, as I can gues it uses model class provided in <code>jwt.php</code> with the following line <code>'user' =&gt; 'App\Models\User'</code>  </p>
  
  <p>By default <code>'user' =&gt; 'App\User'</code>   </p>
  
  <p>So even if I changed user model  in this file I got the next error   </p>
  
  <pre><code>vendor/illuminate/auth/EloquentUserProvider.php line 126:
  Class '\App\User' not found
  </code></pre>
  
  <p>I thought and decided to add config/auth.php file with succeeding content </p>
  
  <p>
  
  <pre><code>return [
      'model' =&gt; 'App\Models\User'
   ];
  </code></pre>
  
  <p>And now I get the the first exception.    </p>
  
  <p>What is wrong I can quess that I have overridden all parameters in auth config file.    </p>
  
  <p>Aslo I wonder where can I find (except source code, it will take a lot of time to understand it) explanation how <code>JWTAuth::attempt</code> works ?   </p>
  
  <p>Thanks. </p>