Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Browse all series

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

  1. Laravel Breeze (1)
    1. Breeze Overview and Usage

      Laravel Breeze is a minimal and simple starting point for your authentication scaffolding in Laravel. It’s the successor to the laravel/ui package and is built using Tailwind CSS, AlpineJS and Blade Components. It publishes everything needed for auth into your project folder, which means it’s easily customizable - and even includes tests.
  2. Laravel Jetstream (7)
    1. 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.
    2. 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.
    3. Customize Routes

      Next, we'll have a look at how to publish and customize routes for both Jetstream and Fortify.
    4. 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.
    5. 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.
    6. 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.
    7. 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.
  3. Laravel Fortify (9)
    1. 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.
    2. 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.
    3. 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.
    4. Profile and Password Updates

      In this episode, we leverage Fortify to allow users to update their profile details and password.
    5. 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 the password.confirm middleware.
    6. 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.
    7. 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.
    8. SPA Authentication With Sanctum

      Let's have a look at using Sanctum in combination with Fortify to authenticate our single-page apps.
    9. Mobile App Authentication With Sanctum

      Let's now use Sanctum to authenticate non-browser-based mobile or desktop applications.
  4. Manual Authentication (2)
    1. 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.
    2. Forgot Password and Reset Password

      Next, we can use Laravel's internal PasswordBroker to implement the "Forgot Password" and "Reset Password" features.
  5. Supplementary (1)
    1. Jetstream Version 2 Upgrade Notes

      In this episode, come along as I review some of the new features that were introduced as part of Jetstream Version 2. This will include the terms and privacy policy, team invites, and feature tests.

Continue Learning