title: Laravel sanctum check if user is authenticated without redirecting
body: <p>I'm using Laravel sanctum for my API.</p>
  <p>How do I check if the user is authenticated with the sanctum middleware but without redirecting? I want to check if he's authenticated and then do something, if not then do something else, without redirecting or sending the &quot;unauthenticated&quot; message.</p>
  <p>Is there a way to do it with sanctum directly or I have to check manually for the token and its expiration?</p>