In this post, I will show you laravel 10 authentication with jetstream. You know that jetstream is a powerful authentication package for laravel. We can easily maintain user manager with auth using jetstream very easily. I will show you some commands to install this jetstream auth package for laravel.
So, If we want to use laravel pre-define auth scaffolding then just we have to follow the tutorial and I will show you how to create auto with livewire and Inertia Vue using Jetstream.
Step 1: Install Laravel 10
In this step, I will first install a fresh Laravel project of version 10 and we will see all of the jetstream authentication systems in Laravel 10. So run the below command to install a fresh Laravel 10 app.
composer create-project --prefer-dist laravel/laravel auth
Step 2: Install Laravel Jetstream
In this second step, we need to install laravel jetstream package to create auth scaffold with livewire. So run this command to create a login, register, and dashboard.
composer require laravel/jetstream
Jetstream gives up to options, we can choose livewire or inertia js to create authentication with jetstream. So run the below command to create jetstream authentication with inertia js.
php artisan jetstream:install inertia
OR
php artisan jetstream:install inertia --teams
Jetstream gives up to options, we can choose livewire or inertia js to create authentication with jetstream. So run the below command to create jetstream authentication with livewire.
php artisan jetstream:install livewire
OR
php artisan jetstream:install livewire --teams
Now run the below command to compile assets:
npm install && npm run dev
Read also: What Is Service Container And When To Use It In Laravel
Conclusion
Now we know laravel 10 jet stream authentication. Hope this laravel 10 jet stream authenticationl tutorial will help you. After completing this laravel 10 jet stream authentication, your concept will be clear about laravel 10 jet stream authentication.