title: Retrieve user by Sanctum plainTextToken
body: <p>How to retrieve the 'logged in' user from a Sanctum token.</p>
  <p>For logging in I have the following method</p>
  <pre><code>public function login(Request $request)
  {
      if (Auth::attempt($request-&gt;toArray())) {
  
          /* @var User $user */
          $user = $request-&gt;user();
  
          $token = $user-&gt;createToken('web-token')-&gt;plainTextToken;
  
          return response()-&gt;json([
              'user' =&gt; $user,
              'token' =&gt; $token,
          ], Response::HTTP_OK);
      }
  }
  </code></pre>
  <p>Now for logging out I use a custom method.</p>
  <pre><code>public function logout(Request $request)
  {
      dd($request-&gt;user()); // &lt;- Always returns null
  }
  </code></pre>
  <p>I want to revoke the token, but I don't know how to retrieve the currently logged in user. Obviously for logging out I send the Authorization header with the Bearer and plainTextToken as value.</p>