Laravel 9 Jetstream Authentication Example Tutorial
In this article, We will learn to you how to use Laravel 9 Jetstream Authentication Example Tutorial. we will give you the Jetstream Authentication Example.
Laravel was released the Jetstream package a few days ago. it is a beautifully designed application scaffolding for Laravel. The Jetstream provides the login, registration, email verification, two-factor authentication, session management, API support via Laravel Sanctum, and optional team management.
Laravel 9 Authentication Scaffolding using Livewire Jetstream
Install Laravel 9
We are going to install laravel 9, so first open the command prompt or terminal and go to xampp htdocs folder directory using the command prompt. after then run the below command.
1 | composer create-project --prefer-dist laravel/laravel laravel8_auth |
Install Jetstream
We will install a Jetstream package using the below php artisan command.
1 | composer require laravel/jetstream |
Install Jetstream With Livewire
Now, We will install a Jetstream With Livewire package using the below php artisan command.
1 | php artisan jetstream:install livewire |
After installing Jetstream With Livewire, We have to install and build your NPM dependency and migrate our database using the below command.
1 2 | npm install && npm run dev php artisan migrate |
Laravel 9 Authentication Scaffolding using Inertia Jetstream
Install Laravel 8
We are going to install laravel 9, so first open the command prompt or terminal and go to xampp htdocs folder directory using the command prompt. after then run the below command.
1 | composer create-project --prefer-dist laravel/laravel laravel9_auth |
Install Jetstream
We will install a Jetstream package using the below php artisan command.
1 | composer require laravel/jetstream |
Install Jetstream With Inertia
Now, We will install a Jetstream With Inertia using the below php artisan command.
1 | php artisan jetstream:install inertia |
After installing Jetstream With Inertia, We have to install and build your NPM dependency and migrate our database using the below command.
1 2 | npm install && npm run dev php artisan migrate |
Finally, we can run our application using the php artisan serve command. if you want to disable the default functionality of Jetstream then you can do it. just open the fortify.php file and comment or uncomment the below line of code.
config/fortify.php
1 2 3 4 5 6 7 8 | 'features' => [ Features::registration(), Features::resetPasswords(), Features::emailVerification(), Features::updateProfileInformation(), Features::updatePasswords(), Features::twoFactorAuthentication(), ], |