Laravel 10 Inertia JS Auth Scaffolding Jetstream Tutorial

Feb 28, 2023 . Admin



Hi friends,

The architecture for inertia js auth with Laravel 10 will be demonstrated in this tutorial using jetstream. This illustration will assist you with Laravel 10 Inertia Jetstream Auth. Laravel 10 auth using inertia tutorial explained step by step. I gave a straightforward, step-by-step explanation using the authentication inertia example from Laravel 10. Follow the instructions for the Laravel 10 Inertia Jetstream authentication example in the tutorial steps below.

Laravel 10 auth scaffolding example; In this tutorial, you will learn from scratch on how to build a login, register, logout, forget password, profile and reset password page by using scaffolding Jetstream without using laravel 10 make:auth command.

Laravel 10 auth scaffolding example; In this tutorial, you will learn from scratch on how to build a login, register, logout, forget password, profile and reset password page by using scaffolding Jetstream without using laravel 10 make:auth command.

So let's start by following an example.

Download Laravel

Let us begin the tutorial by installing a new laravel application. if you have already created the project, then skip following step.

composer create-project laravel/laravel example-app
Install Jetstream:

Now, in this step, we need to use composer command to install jetstream, so let's run bellow command and install bellow library.

composer require laravel/jetstream
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

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

Now, you can run and check. they installed all views, actions and all in your laravel 10 application.

Laravel 10 Jetstream Features

Laravel 10 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:

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 Laravel App:

All steps have been done, now you have to type the given command and hit enter to run the laravel app:

php artisan serve

Now, you have to open web browser, type the given URL and view the app output:

http://localhost:8000/

now you can see layout bellow as here:

Home Page: Login Page: Register Page: Dashboard Page: Profile Page: Team Page:

I hope it can help you...

#Laravel 10