User Login, Access Token, & State Management with Vuex and Laravel

How to:

  1. Create a Vue Login Component
  2. Use a Vuex Action with Axios and Post to an API Endpoint
  3. Receive and store an Access Token
  4. Add an Authorization Header with Access Token to Axios requests
  5. Use a Vuex Action to retrieve user information
  6. Use a Vuex Mutation to set the state of a user object
  7. Retrieve the state from Vuex in our application

#vuex #laravel #vue

User Login, Access Token, & State Management with Vuex and Laravel
1.85 GEEK