• Home
  • Blogs
  • How to install Laravel Breeze 12
Blog Details

How to install Laravel Breeze 12

Laravel makes this process simple with Laravel Breeze, a minimal authentication starter kit. Breeze gives you a ready-to-use authentication flow, built with Blade and Tailwind CSS, and can be extended with Vue, React, or Inertia.

👉 In this tutorial, we’ll start from scratch:

  • Step 1: Install a fresh Laravel project

  • Step 2: Install Breeze

  • Step 3: Install Frontend Dependencies
  • Step 4: Run migrations

  • Test authentication pages

By the end, you’ll have a working Laravel authentication system.

Step1 : Install a New Laravel Project

First, make sure you have these installed:

  • PHP 8.2 or higher

  • Composer

  • MySQL (or another database like SQLite/Postgres)

Run this command to create a new Laravel project:

 
composer create-project laravel/laravel breezeauth
cd breezeauth

Now serve the app:

 
php artisan serve

Visit:
👉 http://127.0.0.1:8000
You should see the Laravel welcome page.

Step 2: Install Laravel Breeze

Next, install Breeze with Composer:

 
composer require laravel/breeze --dev

Run the Breeze installer (choose Blade stack for this series):

 
php artisan breeze:install

This will generate:

  • Routes (routes/auth.php)

  • Controllers (app/Http/Controllers/Auth/)

  • Views (resources/views/auth/*)

  • Layouts (resources/views/layouts/app.blade.php)

Step 3: Install Frontend Dependencies

Since Breeze uses Tailwind CSS, install frontend packages:

npm install
npm run dev

This compiles the CSS/JS assets for authentication views.

Step 4: Configure Database & Run Migrations

Open your .env file and configure database credentials:

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

Now run migrations:

This creates users, password_resets, and failed_jobs tables.

Step 5: Test Laravel Breeze Authentication

Serve the app again:

php artisan migrate
php artisan serve

Now visit in your browser:

  • /register → Register a new user

  • /login → Login with your account

  • /forgot-password → Reset password

  • /verify-email → Email verification page

🎉 Congratulations! You now have a fully working Laravel authentication system.

Laravel Breeze Auth

What’s Next?

Now that Breeze is installed and running, here’s what you can do next:

  • Explore the file structure (routes, controllers, views)

  • Customize the registration form (add fields like username/phone)

  • Add role-based authentication (admin vs user)

In the next post, we’ll cover:

Laravel Breeze Folder Structure Explained (Routes, Controllers, Views)

Leave A Reply

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