Laravel Authentication (Breeze, Jetstream, Fortify)
Laravel provides several excellent options for managing authentication in your applications. If you'd prefer a head start, you might reach for one of the available first-party packages that provide robust, modern scaffolding for your authentication layer, including Laravel Breeze, an initial starter, Laravel Jetstream, offering two-factor auth, API tokens and team management, orLaravel Fortify, a backend implementation.
In this series, we'll review how to use and customize these packages in order to fit the authentication needs of your application.
Progress
Series Info
- Episodes
- 20
- Run Time
- 3h 25m
- Difficulty
- Intermediate
- Last Updated
- Jan 28, 2021
- Version
- Latest
Series Episodes
- Laravel Breeze (1)
- Laravel Jetstream (7)
Jetstream Installation and Features
Laravel Jetstream is a beautifully designed application scaffolding tool that provides a great starting point for your new applications. It’s built with Tailwind CSS, AlpineJS and Blade Components and includes features like login, registration, profile management, two-factor auth, session management, API tokens, and teams. In this episode, we take a look at all of these features from a user’s point of view.Customize Views
Jetstream allows you to publish all views and Blade components to your project folder, making it easy to customize the look and feel of your application. Let's review how.Customize Routes
Next, we'll have a look at how to publish and customize routes for both Jetstream and Fortify.Actions
Most of the functionality of Jetstream (and Fortify) can be customized by modifying corresponding Actions. These classes are all available in your project folder. Let's take a look at a few examples in this video.API Tokens
Let's now review Jetstream’s API tokens feature. This is technically a feature of Laravel Sanctum, but Jetstream includes all the necessary frontend views and scaffolding to accomplish this. API Tokens allow you to issue API tokens / personal access tokens that may be used to authenticate API requests to your application.Team Support
Jetstream has built-in support for teams and team management. Let's have a look at making use of these features to extend a typical blog application to support teams.Inertia Integration
Jetstream provides the option to choose Inertia as your Laravel Stack. Inertia replaces your Blade views and components with Vue components, if you prefer to work with JavaScript. Let's review a handful of examples where we modify pages and components with Vue.
- Laravel Fortify (9)
Login and Registration
Let's install Fortify into a fresh Laravel application and take a look at creating the necessary front-end Blade views for logging in and registering.Email Verification
Let's take a look at verifying a user’s email address after the registration process. We'll also briefly review how to customize the email template.Reset Passwords
In this lesson, we'll learn how to allow users to enter their email for a forgotten password, receive an email, and then choose a new password with the reset password form.Profile and Password Updates
In this episode, we leverage Fortify to allow users to update their profile details and password.Password Confirmation
Sometimes you want to confirm a user’s password before performing a particular task. Fortify allows us to do this easily by creating a simple form along with thepassword.confirmmiddleware.Two-Factor Authentication
Let's take a look at turning on two-factor authentication from within the user’s dashboard. This involves rendering a QR code and generating recovery codes. We also take a look at building the two-factor challenge that requires the user to enter these codes to complete the authentication process.API Usage
Let's review how to leverage Fortify as an API to power third-party tools, like single-page or mobile apps. Fortify provides support for this and can simplify the entire process.SPA Authentication With Sanctum
Let's have a look at using Sanctum in combination with Fortify to authenticate our single-page apps.Mobile App Authentication With Sanctum
Let's now use Sanctum to authenticate non-browser-based mobile or desktop applications.
- Manual Authentication (2)
Manual Login and Registration
Let's now have a look at performing authentication manually using Laravel's built in authentication features. We'll start off by implementing a typical login and registration system.Forgot Password and Reset Password
Next, we can use Laravel's internalPasswordBrokerto implement the "Forgot Password" and "Reset Password" features.
- Supplementary (1)
