لاراول

Laravel Authentication (Breeze, Jetstream, and Fortify)

Laravel Authentication (Breeze, Jetstream, and 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.



سطح متوسط 20 جلسه آموزشی 03:25:00 ساعت
01
قسمت 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.

02
قسمت 2

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.

03
قسمت 3

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.

04
قسمت 4

Customize Routes

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

05
قسمت 5

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.

06
قسمت 6

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.

07
قسمت 7

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.

08
قسمت 8

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.

09
قسمت 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.

10
قسمت 10

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.

11
قسمت 11

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.

12
قسمت 12

Profile and Password Updates

In this episode, we leverage Fortify to allow users to update their profile details and password.

13
قسمت 13

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.

14
قسمت 14

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.

15
قسمت 15

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.

16
قسمت 16

SPA Authentication With Sanctum

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

17
قسمت 17

Mobile App Authentication With Sanctum

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

18
قسمت 18

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.

19
قسمت 19

Forgot Password and Reset Password

Next, we can use Laravel's internal PasswordBroker to implement the "Forgot Password" and "Reset Password" features.

20
قسمت 20

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.