Skip to content
Home Tutorials Roadmaps Courses
Log in Join free
Tutorials Laravel Laravel Breeze
Laravel Advanced FREE

Laravel Breeze

Lesson 1 of 17 Advanced Interactive

Laravel Breeze provides simple authentication scaffolding.

Installation

composer require laravel/breeze --dev && php artisan breeze:install

Features

  • Login, register, forgot password
  • Email verification
  • Profile management

Syntax

LARAVEL
composer require laravel/breeze --dev
php artisan breeze:install
npm install && npm run build
php artisan migrate

Route::middleware("auth")->group(function () {
    Route::get("/dashboard", [DashboardController::class, "index"]);
});
Laravel Breeze Auth
PHP
# Install Laravel Breeze (terminal)
composer require laravel/breeze --dev

php artisan breeze:install blade

php artisan migrate
npm install
npm run build

# Routes added by Breeze
# /login, /register, /forgot-password
# /dashboard, /email/verify

# Dashboard with auth guard
Route::get("/dashboard", function () {
    return view("dashboard");
})->middleware(["auth", "verified"])->name("dashboard");

Practice

1
Exercise

Create a protected dashboard route.

Answer
Route::middleware("auth")->get("/dashboard", fn() => "Dashboard");

Quick Quiz

1

What does auth()->check() return?

Returns true if authenticated, false otherwise.

Interview Questions

Breeze is minimal (login/register). Jetstream adds teams, API support, and profile management.