I\'m configuring a Laravel project to use Passport token authentication. Everything seems to be working, but when the auth:api middleware fails, it responds to the
auth:api
In middleware you can return like this:
return abort(401);