Friday, July 18, 2025
HomeLanguagesLaravel 8 Authentication with Breeze Tutorial Example

Laravel 8 Authentication with Breeze Tutorial Example

Laravel 8 breeze auth scaffolding. In this tutorial, you will learn how to build a login, register, logout, forget password, profile and reset password page by using breeze auth scaffolding.

In this laravel 8 auth example tutorial, we will use the breeze auth to implement default login, register, reset the password, forget password, email verification, and two-factor authentication blade views and controller file.

Laravel 8 breeze auth is simple and lightweight scaffolding. And Laravel 8 breeze auth app will look like in following image:

Home/Welcome Page

Laravel 8 Breeze Auth Example Tutorial

  • Step 1 – Install Laravel 8 App
  • Step 2 – Connecting App to Database
  • Step 3 – Install breeze Auth Scaffolding
  • Step 4 – Run PHP artisan Migrate
  • Step 5 – Install Npm Packages
  • Step 6 – Run Development Server

Step 1 – Install Laravel 8 App

In step 1, open your terminal and navigate to your local web server directory using the following command:

//for windows user
cd xampp/htdocs

//for ubuntu user
cd var/www/html

Then install laravel 8 latest application using the following command:

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

Step 2 – Connecting App to Database

In step 2, open your downloaded laravel 8 app into any text editor. Then find .env file and configure database detail like following:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=db name
DB_USERNAME=db user name
DB_PASSWORD=db password

Step 3 – Install breeze Auth Scaffolding

In step 3, install auth scaffolding breeze package in laravel app by using the following command:

composer require laravel/breeze --dev

Next you have to install laravel breeze for simple auth scaffolding. so let’s run bellow command:

php artisan breeze:install

Step 4 – Run php artisan Migrate

In step 4, open terminal and type the following command on it to create database table:

php artisan migrate

Step 5 – Install Npm Packages

In step 5, open again command prompt and type the following command to install node js:

npm install

Then type the following command on cmd to run npm:

npm run dev

Step 6 – Run Development Server

In step 6, use the following command to start development server:

php artisan serve

Now, open browser and hit the following url on it:

http://127.0.0.1:8000/

Recommended Laravel Posts

RELATED ARTICLES

Most Popular

Dominic
32151 POSTS0 COMMENTS
Milvus
67 POSTS0 COMMENTS
Nango Kala
6529 POSTS0 COMMENTS
Nicole Veronica
11677 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11734 POSTS0 COMMENTS
Shaida Kate Naidoo
6621 POSTS0 COMMENTS
Ted Musemwa
6899 POSTS0 COMMENTS
Thapelo Manthata
6586 POSTS0 COMMENTS
Umr Jansen
6581 POSTS0 COMMENTS