LaravelTutorials

Laravel 8 Auth (Registration and Login) with jetstream and livewire

Divi WordPress Theme

Laravel 8, there is a major change in that area with jetstream auth using livewire and Follow few step to create example of authentication laravel 8 livewire jetstream.

Step 1: Install a new Laravel 8

composer create-project --prefer-dist laravel/laravel blog

Step 2: Database Configuration

Open the .env file on your text editor and create your database and database connection add this file

Step 3: Add This code in this file “App/Providers/AppServiceProvider.php”

Schema::defaultstringLength(191);

Add this code in boot function

use Illuminate\Support\Facades\Schema;

Step 4: Install Jetstream

composer require laravel/jetstream

Step 5: Install livewire or inertia

php artisan jetstream:install livewire

As suggested, run npm install && npm run dev to build all the javaScript files and CSS we need for our app. On successful build, Laravel will send a notification at the bottom left.

Step 6: Database Migration

php artisan migrate

Step 7: Let’s run our app

php artisan serve

After that Holding down the Ctrl button and Clicking the localhost http://127.0.0.1:8000/ will serve our app in our default browser

Hope you are understand very well. Thanks

Khandoker Hirok

I'm an expert web developer over 6 years experience. I can fix bugs, customize and makes website and Software as per your requirements with Wordpress, PHP, Laravel and Codeigniter. My Fiverr: https://fiverr.com/hirokbd

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button