Playing
01. Introduction and demo

Transcript

00:00
In this course, we're going to learn how to authenticate with the Laravel
00:03
API from view using the composition API. We're going to start things out in the first section by setting up a fresh Laravel project with Sanctum and Fortify. We're going to configure everything we need to get our client speaking to our
00:18
backend, and then we're going to implement the ability to authenticate with a really simple auth module, thanks to the flexibility of the composition API. Laravel Sanctum comes in two parts. The first one is the ability to issue tokens, which we're not going to be
00:33
touching, instead, we're going to work with Sanctum's single page application authentication functionality. So we can just send requests down to our backend, have a cookie set and be authenticated on the client side.
00:46
Now in the second half of the course, we're going to create our own starter kit with more features like the ability to register, and we're also going to be building out a full middleware implementation so we can attach middleware to routes like our dashboard that will redirect a user over to the login
01:00
page if they're not authenticated. Okay, let's get started in the next episode by setting everything up, and then we'll work through step-by-step on how to authenticate with Laravel with Vue using Laravel Sanctum.
21 episodes1 hr 35 mins

Overview

Learn how to authenticate with a Laravel API from Vue using the Composition API.

We'll start by setting up a fresh Laravel project with Sanctum and Fortify, configure everything step-by-step, and then implement the ability to authenticate from Vue with a simple auth module — thanks to the flexibility of the Composition API.

In the second half of the course, we’ll create our own beautiful starter kit with more features, including registration and middleware to protect routes.

Alex Garrett-Smith
Alex Garrett-Smith
Hey, I'm the founder of Codecourse!

Episode discussion

No comments, yet. Be the first!