title: Laravel bearer token authentication
body: <p>I want to make authentication for API requests coming from mobile users.</p>
  
  <p>I followed <a href="https://laravel.com/docs/api-authentication" rel="noreferrer">this</a>
  and made <code>api_key</code> column inside <code>users</code> table.</p>
  
  <p>I also created middleware:</p>
  
  <pre class="lang-php prettyprint-override"><code>public function handle($request, Closure $next)
  {
    $token = $request-&gt;bearerToken();
    return $next($token);
  }
  </code></pre>
  
  <p>What I want is to get <code>bearer</code> token from <code>header</code> and check it against user table.</p>
  
  <p>How to achieve this?</p>