title: Laravel API TOKEN authentication not working
body: <p>
  I am trying to authenticate user with <code>api authentication token</code>. But even after using correct token its saying unauthorized.
  </p>
  
  <p>I am using laravel auth and socialite for social authentication 
  so my <code>api.php</code> route is like this</p>
  
  <pre><code>Route::group(['middleware'=&gt;'auth:api'], function(){
    Route::get('hello','ApiTestControler@index');
  });
  </code></pre>
  
  <p>
      And i m trying to access this with this url</p>
  
  <p><code>http://localhost:8000/api/hello</code>
  and in the header </p>
  
  <pre><code>token: TOKEN HERE 
  Content-Type: application/json 
  Accept: application/json
  </code></pre>
  
  <p>I was expecting it to log me in and show the <code>ApiTestController index methord</code></p>
  
  <p>
  But its throwing an error <code>401 unauthorized</code>
  How do i fix this issue and get user authenticate using the API token?</p>
  
  <p>My controller</p>
  
  <pre><code> class ApiTestController extends Controller
  {
    public function index(){
      return json_encode ("Welcome REST API");
    }
  }
  </code></pre>
  
  <p>User migration table</p>
  
  <pre><code>        $table-&gt;increments('id');
          $table-&gt;string('name')-&gt;unique();
          $table-&gt;string('first_name')-&gt;nullable();
          $table-&gt;string('last_name')-&gt;nullable();
          $table-&gt;string('email')-&gt;unique()-&gt;nullable();
          $table-&gt;string('password');
          $table-&gt;rememberToken();
          $table-&gt;boolean('activated')-&gt;default(false);
          $table-&gt;string('token');
          $table-&gt;ipAddress('signup_ip_address')-&gt;nullable();
          $table-&gt;ipAddress('signup_confirmation_ip_address')-&gt;nullable();
          $table-&gt;ipAddress('signup_sm_ip_address')-&gt;nullable();
          $table-&gt;ipAddress('admin_ip_address')-&gt;nullable();
          $table-&gt;ipAddress('updated_ip_address')-&gt;nullable();
          $table-&gt;ipAddress('deleted_ip_address')-&gt;nullable();
          $table-&gt;timestamps();
          $table-&gt;softDeletes();
  </code></pre>
  
  <p>And the auth configuration in <code>config\auth.php</code></p>
  
  <pre><code>'guards' =&gt; [
          'web' =&gt; [
              'driver'   =&gt; 'session',
              'provider' =&gt; 'users',
          ],
  
          'api' =&gt; [
              'driver'   =&gt; 'token',
              'provider' =&gt; 'users',
          ],
        ]
  </code></pre>