In this tutorial, we will learn Laravel 8 Authentication using Jetstream Example



Laravel 8 Auth Scaffolding using Livewire Jetstream


Install Laravel 8:

composer create-project --prefer-dist laravel/laravel blog

Install Jetstream:

composer require laravel/jetstream

Create Auth with Livewire:

php artisan jetstream:install livewire
  
OR
  
php artisan jetstream:install livewire --teams

Now, let's node js package:

npm install

let's run package:

npm run dev

now, we need to run migration command to create database table:

php artisan migrate


Laravel 8 Auth Scaffolding using Inertia Jetstream


Install Laravel 8:

composer create-project --prefer-dist laravel/laravel blog

Install Jetstream:

composer require laravel/jetstream

Create Auth with Inertia:

php artisan jetstream:install inertia
  
OR
  
php artisan jetstream:install inertia --teams


Now, let's node js package:


npm install

let's run package:

npm run dev

now, we need to run migration command to create database table:

php artisan migrate

Laravel 8 Jetstream Features

config/fortify.php

....
  
'features' => [
        Features::registration(),
        Features::resetPasswords(),
        Features::emailVerification(),
        Features::updateProfileInformation(),
        Features::updatePasswords(),
        Features::twoFactorAuthentication(),
    ],
...

config/jetstream.php

....
  
'features' => [
        Features::profilePhotos(),
        Features::api(),
        Features::teams(),
    ],
...

Run your application by below command: 

php artisan serve

May this help you.