
Learn to use HttpOnly cookies to store a JWT in Laravel. Override the authentication middleware to read the JWT from cookies and forward it as a Bearer token.
Post a logout request to delete the JWT cookie by forgetting it and expiring it. Return a success message, and ensure the user becomes unauthenticated afterward.
Build a register page using Vue 3 for Laravel authentication by adapting the sign-in form, adding first name, last name, and password confirm fields, and preparing for CSRF token integration.
Submit the registration form by calling a submit function, preventing default behavior, and sending a post request with axios to /api/register with user data; on success, redirect to login.
Display the current logged-in user on the homepage by fetching user data with axios, then greet with the first and last name and offer a log out button.
Learn how to authenticate using Vue and Laravel.
In Laravel you will learn:
Create public and secure routes
Connect with MySQL
Run Migrations
Register Users
Generate Jwt Tokens
Use HttpOnly Cookies
Send Emails
In Vue you will learn:
Use Composition API
Create components and routes
Consume API calls
Use Vuex
If these are what you are looking for then this course is for you.