Laravel 9 Authentication with Laravel Breeze

Whatsapp

https://www.fundaofwebit.com/post/laravel-9-authentication-with-laravel-breeze

Laravel 9 Auth Scaffolding using Breeze Tutorial


In this post, you will be learning about laravel authentication using breeze package which is all about login and registration system in laravel 9.

Step 1: First, you should create a new Laravel application, configure your database, and run your database migrations:

composer create-project laravel/laravel laravelproject


Step 2: Set Up Database Details in ENV file.

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=laravel
DB_USERNAME=root
DB_PASSWORD=


Step 3: Install Laravel Breeze

composer require laravel/breeze --dev


Step 4: Step up Auth Scaffolding

4.1 - Simple Auth Scaffolding:

php artisan breeze:install

4.2 - Breeze & Inertia

php artisan breeze:install vue

// Or...

php artisan breeze:install react

npm install
npm run dev
php artisan migrate


Step 5: Run npm install && npm run dev command

npm install && npm run dev


Step 6: Migrate your database

php artisan migrate


Now our Laravel 9 authentication system with Breeze is ready. you can run serve

php artisan serve


Thank you.

© Copyright - 2018 - 2022 | All rights reserved at Funda of Web IT