Laravel 8.0 Auth with Inertia JS Jetstream Example

In this article, I will give you example of laravel 8.0 jetstream auth using inertia. We will implement a laravel 8.0 auth with inertia jetstream. This article goes into detail on laravel 8.0 auth with inertia tutorial. I explained simply step by step laravel 8.0 authentication inertia example.

Read also: How to create a laravel 8.0 project

Step 1: Install Laravel 8.0

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

Step 2: Install Jetstream

laravel authentication is the key Feature within a laravel project. To install Jetstream you have to install composer first. After that run this command

composer require laravel/jetstream

Step 3: Create Auth with Inertia

Now, we need to create authentication using bellow command. you can create basic login, register and email verification. if you want to create team management then you have to pass addition parameter. you can see bellow commands:

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

Step 4: Install node js package

npm install

Step 5: Run the node package

npm run dev

Step 6: Migrate by running

php artisan migrate

Laravel 8 Jetstream Features at a galance

Laravel 8.0 Jetstream provides new all feature are configurable. you can see there is a configuration file fortify.php and jetstream.php file where you can enable and disable option for that feature like:

config/fortify.php

    'features' => [
        Features::registration(),
        Features::resetPasswords(),
        Features::emailVerification(),
        Features::updateProfileInformation(),
        Features::updatePasswords(),
        Features::twoFactorAuthentication([
            'confirmPassword' => true,
        ]),
    ],
config/jetstream.php
'features' => [
        Features::termsAndPrivacyPolicy(),
        Features::profilePhotos(),
        Features::api(),
        //Features::teams(['invitations' => true]),
        Features::accountDeletion(),
    ],

You can enable and disable features by commenting the line above.

Read also: Laravel 8.0 pagination example

Let’s check it

php artisan serve

Output

Read also: Generate pdf in laravel 8.0 using dompdf

Laravel Auth default pages are now provided by jetstream and its make our life better.

Registration page

http://127.0.0.1:8000/register
laravel auth laravel authentication jwt laravel laravel login auth laravel laravel make auth laravel 6 auth laravel api authentication laravel authorization laravel 7 auth laravel auth user login laravel laravel auth api laravel 6 make auth laravel ui auth laravel multi auth laravel 7 make auth laravel auth login laravel jwt auth jwt auth laravel laravel custom authentication auth in laravel make auth laravel 6 php artisan make auth laravel 6 make auth laravel auth laravel 6 laravel facebook login php artisan auth laravel auth logout laravel vue auth laravel login example make auth laravel 7 laravel api authentication without passport laravel login without auth auth laravel 7 laravel custom login lumen authentication laravel api login laravel 8 auth laravel basic auth laravel get auth user laravel login with username php artisan ui bootstrap laravel passport authentication php artisan ui auth api authentication laravel laravel vue authentication make auth in laravel 6 laravel firebase auth jwt laravel 6 artisan make auth laravel passport login laravel login controller laravel vue login login laravel 7 login laravel 6 laravel login api laravel rest api authentication php artisan ui vue multi auth laravel laravel auth facade lumen auth make auth in laravel 7 laravel login with google laravel 7 api authentication auth logout laravel laravel google authenticator laravel user authentication make auth in laravel laravel 8 authentication laravel auth ui auth in laravel 6 laravel react authentication laravel user login laravel auth 6 authorization laravel use auth laravel laravel api authentication with passport laravel auth github laravel 7 multi auth laravel passport api authentication laravel 6 login laravel 6 multi auth laravel create auth laravel use auth multi auth in laravel get auth user laravel laravel login with facebook login api laravel laravel socialite api authentication laravel add auth laravel auth controller laravel make auth 6 lumen jwt auth auth in laravel 7 laravel passport multi auth laravel if auth laravel vue spa authentication login controller laravel laravel 8 make auth
register

Login page

http://127.0.0.1:8000/login
laravel auth laravel authentication jwt laravel laravel login auth laravel laravel make auth laravel 6 auth laravel api authentication laravel authorization laravel 7 auth laravel auth user login laravel laravel auth api laravel 6 make auth laravel ui auth laravel multi auth laravel 7 make auth laravel auth login laravel jwt auth jwt auth laravel laravel custom authentication auth in laravel make auth laravel 6 php artisan make auth laravel 6 make auth laravel auth laravel 6 laravel facebook login php artisan auth laravel auth logout laravel vue auth laravel login example make auth laravel 7 laravel api authentication without passport laravel login without auth auth laravel 7 laravel custom login lumen authentication laravel api login laravel 8 auth laravel basic auth laravel get auth user laravel login with username php artisan ui bootstrap laravel passport authentication php artisan ui auth api authentication laravel laravel vue authentication make auth in laravel 6 laravel firebase auth jwt laravel 6 artisan make auth laravel passport login laravel login controller laravel vue login login laravel 7 login laravel 6 laravel login api laravel rest api authentication php artisan ui vue multi auth laravel laravel auth facade lumen auth make auth in laravel 7 laravel login with google laravel 7 api authentication auth logout laravel laravel google authenticator laravel user authentication make auth in laravel laravel 8 authentication laravel auth ui auth in laravel 6 laravel react authentication laravel user login laravel auth 6 authorization laravel use auth laravel laravel api authentication with passport laravel auth github laravel 7 multi auth laravel passport api authentication laravel 6 login laravel 6 multi auth laravel create auth laravel use auth multi auth in laravel get auth user laravel laravel login with facebook login api laravel laravel socialite api authentication laravel add auth laravel auth controller laravel make auth 6 lumen jwt auth auth in laravel 7 laravel passport multi auth laravel if auth laravel vue spa authentication login controller laravel laravel 8 make auth
login

Dashboard

http://127.0.0.1:8000/dashboard
laravel auth laravel authentication jwt laravel laravel login auth laravel laravel make auth laravel 6 auth laravel api authentication laravel authorization laravel 7 auth laravel auth user login laravel laravel auth api laravel 6 make auth laravel ui auth laravel multi auth laravel 7 make auth laravel auth login laravel jwt auth jwt auth laravel laravel custom authentication auth in laravel make auth laravel 6 php artisan make auth laravel 6 make auth laravel auth laravel 6 laravel facebook login php artisan auth laravel auth logout laravel vue auth laravel login example make auth laravel 7 laravel api authentication without passport laravel login without auth auth laravel 7 laravel custom login lumen authentication laravel api login laravel 8 auth laravel basic auth laravel get auth user laravel login with username php artisan ui bootstrap laravel passport authentication php artisan ui auth api authentication laravel laravel vue authentication make auth in laravel 6 laravel firebase auth jwt laravel 6 artisan make auth laravel passport login laravel login controller laravel vue login login laravel 7 login laravel 6 laravel login api laravel rest api authentication php artisan ui vue multi auth laravel laravel auth facade lumen auth make auth in laravel 7 laravel login with google laravel 7 api authentication auth logout laravel laravel google authenticator laravel user authentication make auth in laravel laravel 8 authentication laravel auth ui auth in laravel 6 laravel react authentication laravel user login laravel auth 6 authorization laravel use auth laravel laravel api authentication with passport laravel auth github laravel 7 multi auth laravel passport api authentication laravel 6 login laravel 6 multi auth laravel create auth laravel use auth multi auth in laravel get auth user laravel laravel login with facebook login api laravel laravel socialite api authentication laravel add auth laravel auth controller laravel make auth 6 lumen jwt auth auth in laravel 7 laravel passport multi auth laravel if auth laravel vue spa authentication login controller laravel laravel 8 make auth
dashboard

Profile

http://127.0.0.1:8000/user/profile
laravel auth laravel authentication jwt laravel laravel login auth laravel laravel make auth laravel 6 auth laravel api authentication laravel authorization laravel 7 auth laravel auth user login laravel laravel auth api laravel 6 make auth laravel ui auth laravel multi auth laravel 7 make auth laravel auth login laravel jwt auth jwt auth laravel laravel custom authentication auth in laravel make auth laravel 6 php artisan make auth laravel 6 make auth laravel auth laravel 6 laravel facebook login php artisan auth laravel auth logout laravel vue auth laravel login example make auth laravel 7 laravel api authentication without passport laravel login without auth auth laravel 7 laravel custom login lumen authentication laravel api login laravel 8 auth laravel basic auth laravel get auth user laravel login with username php artisan ui bootstrap laravel passport authentication php artisan ui auth api authentication laravel laravel vue authentication make auth in laravel 6 laravel firebase auth jwt laravel 6 artisan make auth laravel passport login laravel login controller laravel vue login login laravel 7 login laravel 6 laravel login api laravel rest api authentication php artisan ui vue multi auth laravel laravel auth facade lumen auth make auth in laravel 7 laravel login with google laravel 7 api authentication auth logout laravel laravel google authenticator laravel user authentication make auth in laravel laravel 8 authentication laravel auth ui auth in laravel 6 laravel react authentication laravel user login laravel auth 6 authorization laravel use auth laravel laravel api authentication with passport laravel auth github laravel 7 multi auth laravel passport api authentication laravel 6 login laravel 6 multi auth laravel create auth laravel use auth multi auth in laravel get auth user laravel laravel login with facebook login api laravel laravel socialite api authentication laravel add auth laravel auth controller laravel make auth 6 lumen jwt auth auth in laravel 7 laravel passport multi auth laravel if auth laravel vue spa authentication login controller laravel laravel 8 make auth
profile

Forgot Password

http://127.0.0.1:8000/forgot-password
laravel auth laravel authentication jwt laravel laravel login auth laravel laravel make auth laravel 6 auth laravel api authentication laravel authorization laravel 7 auth laravel auth user login laravel laravel auth api laravel 6 make auth laravel ui auth laravel multi auth laravel 7 make auth laravel auth login laravel jwt auth jwt auth laravel laravel custom authentication auth in laravel make auth laravel 6 php artisan make auth laravel 6 make auth laravel auth laravel 6 laravel facebook login php artisan auth laravel auth logout laravel vue auth laravel login example make auth laravel 7 laravel api authentication without passport laravel login without auth auth laravel 7 laravel custom login lumen authentication laravel api login laravel 8 auth laravel basic auth laravel get auth user laravel login with username php artisan ui bootstrap laravel passport authentication php artisan ui auth api authentication laravel laravel vue authentication make auth in laravel 6 laravel firebase auth jwt laravel 6 artisan make auth laravel passport login laravel login controller laravel vue login login laravel 7 login laravel 6 laravel login api laravel rest api authentication php artisan ui vue multi auth laravel laravel auth facade lumen auth make auth in laravel 7 laravel login with google laravel 7 api authentication auth logout laravel laravel google authenticator laravel user authentication make auth in laravel laravel 8 authentication laravel auth ui auth in laravel 6 laravel react authentication laravel user login laravel auth 6 authorization laravel use auth laravel laravel api authentication with passport laravel auth github laravel 7 multi auth laravel passport api authentication laravel 6 login laravel 6 multi auth laravel create auth laravel use auth multi auth in laravel get auth user laravel laravel login with facebook login api laravel laravel socialite api authentication laravel add auth laravel auth controller laravel make auth 6 lumen jwt auth auth in laravel 7 laravel passport multi auth laravel if auth laravel vue spa authentication login controller laravel laravel 8 make auth
forgot password

Hope it will works!

2 replies to Laravel 8.0 Auth with Inertia JS Jetstream Example

  1. Pingback:

  2. Pingback:

Leave a Reply