title: How do I get the client id in a Laravel app?
body: <p>I've set up a laravel app with client authentification. I send it my client id and client secret and it gives me a token. I'm able to log in to my laravel app, but I can't figure out how to get the id of the client that's been authorized.</p>
  
  <p>I've seen hints to use <code>auth()-&gt;user()-&gt;Token()-&gt;getAttribute('client_id')</code> to get the client id, but since I'm only using clients there is no user and I get an error about trying to call Token() on a null object. <code>Auth::id()</code> also returned nothing. I grabbed the token from the header with <code>Request::header('Authorization')</code>, but it didn't match anything in the database.</p>