In this tutorial, you will learn laravel 8 authentication with jetstream auth with livewire.
You can follow the bellow step and get it laravel 8 authentications with jetstream using livewire and Inertia.
Step 1: Install Laravel 8
Install laravel 8 application using composer command.
composer create-project --prefer-dist laravel/laravel blog
Step 2: Install Jetstream
Run the following composer command to install jetstream
composer require laravel/jetstream
Step 3: Create Auth with Livewire:
now, we need to create authentication using the following command. You can create basic login, registration, and email verification. If you want to create team management, you must pass the additional parameter. See the following commands:
php artisan jetstream:install livewire
OR
php artisan jetstream:install livewire --teams
let's Install NodeJS package:
npm install
Let's run Nodejs package:
npm run dev
Run migration command to create database table:
php artisan migrate
Step 4: Laravel 8 Configure Jetstream Features
Jetstream provides new all feature is configurable. let's open the config/fortify.php file and add the configure.
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(),
],
...
Now you can run your application by following command:
php artisan serve
I hope it can help you...