Back Button Frameworks
Laravel Authentication (Breeze, Jetstream, Fortify)

Laravel Authentication (Breeze, Jetstream, Fortify)

Laravel offers several options for 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. For example, Laravel Breeze is an excellent choice to get up and running quickly. If you require additional features, Laravel Jetstream offers two-factor auth, API tokens and team management. If you'd instead prefer to use your own front-end stack, you might consider Laravel Fortify as the 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.

Intermediate
20 episodes
3h 25m
20
Latest Episode in This Series

Added 4 weeks ago

Jetstream Version 2 Upgrade Notes

In this episode, come along as I review some of the new features that were introduced as...

Watch
Laravel Authentication (Breeze, Jetstream, Fortify)

Laravel Authentication (Breeze, Jetstream, Fortify)

Laravel offers several options for 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. For example, Laravel Breeze is an excellent choice to get up and running quickly. If you require additional features, Laravel Jetstream offers two-factor auth, API tokens and team management. If you'd instead prefer to use your own front-end stack, you might consider Laravel Fortify as the 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.

Begin
20
Latest Episode in This Series

Added 4 weeks ago

Jetstream Version 2 Upgrade Notes

In this episode, come along as I review some of the new features that were introduced as...
Watch

Your Teacher | Andre Madarang

https://laracasts.s3.amazonaws.com/avatars/andre-madarang.jpg's avatar
Greetings! I'm Andre, a full-stack web developer and Laracasts instructor. My other hobbies include playing guitar, videography and gaming.
  1. Section 1 Laravel Breeze

    1. 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. Section 2 Laravel Jetstream

    1. 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. Free Episode Run Time 11:46 View Source

      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. Free Episode Run Time 7:40 View Source

      Next, we'll have a look at how to publish and customize routes for both Jetstream and Fortify.

    4. Free Episode Run Time 15:28 View Source

      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. 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. 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. Free Episode Run Time 7:09 View Source

      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. Section 3 Laravel Fortify

    1. Free Episode Run Time 17:52 View Source

      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. 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. 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. In this episode, we leverage Fortify to allow users to update their profile details and password.

    5. 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. 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. Run Time 5:32 View Source

      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. Let's have a look at using Sanctum in combination with Fortify to authenticate our single-page apps.

    9. Let's now use Sanctum to authenticate non-browser-based mobile or desktop applications.

  4. Section 4 Manual Authentication

    1. 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. Next, we can use Laravel's internal PasswordBroker to implement the "Forgot Password" and "Reset Password" features.

  5. Section 5 Supplementary

    1. Free Episode Run Time 7:57

      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.