[Vuejs]-Allow only authenticated users to access API routes

0👍

auth:api middleware only work with Passport. This auth:api middleware check valid access token.

And I think you are not using passport for login

 composer require laravel/passport

In your case you can only use auth middleware instead auth:api

Leave a comment