Here, I will show you laravel 10 livewire auth scaffolding using jetstream. if you want to see example of laravel 10 auth with livewire jetstream then you are a right place. step by step explain laravel 10 auth with livewire tutorial. I would like to show you step by step laravel 10 authentication livewire example. So, let's follow few step to create example of authentication laravel 10 livewire jetstream.
So let's start by following an example.
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
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 Livewire:
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 livewire
php artisan jetstream:install livewire --teams
Now, let's node js package:
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:
'features' => [
'features' => [
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:
now you can see layout bellow as here:
I hope it can help you...