Laravel 8 Jetstream Authentication Example Tutorial
In this article, We will learn to you how to use Laravel 8 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 8 Authentication Scaffolding using Livewire Jetstream
Install Laravel 8
We are going to install laravel 8, 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 8 Authentication Scaffolding using Inertia Jetstream
Install Laravel 8
We are going to install laravel 8, so first open the command prompt or terminal and go to 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 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(), ], |
Read Also
Laravel 8 Multiple Authentication Example Tutorial
Laravel 8 Import Export Excel & Csv File Example Tutorial
Laravel 8 GEO Chart Example Using Lavacharts