SyntaxStudy
Sign Up
Laravel Laravel Breeze and Starter Kits
Laravel Beginner 1 min read

Laravel Breeze and Starter Kits

Laravel offers official authentication starter kits to bootstrap login, registration, password reset, email verification, and profile management. Laravel Breeze is the minimal, simple starter kit built with Blade and Tailwind CSS (with Inertia.js or Livewire variants available). It installs authentication scaffolding, publishes views, and adds the necessary routes — all in one Artisan command. Installing Breeze is done via Composer: composer require laravel/breeze --dev, followed by php artisan breeze:install. You then run npm install && npm run dev to compile assets and php artisan migrate to create the users table with the required columns. Breeze is designed to be read and modified — it publishes all code to your application rather than hiding it in a package. Laravel Jetstream is the more feature-rich authentication starter kit, offering team management, two-factor authentication, session management, and API tokens via Sanctum. It supports Livewire or Inertia.js as front-end stacks. For APIs, Laravel Sanctum provides token-based authentication for SPAs and mobile apps, while Laravel Passport implements the full OAuth2 server specification.
Example
# Install Laravel Breeze (Blade + Tailwind)
composer require laravel/breeze --dev
php artisan breeze:install blade

# OR install with Inertia + Vue
php artisan breeze:install vue

# Install front-end dependencies and compile assets
npm install && npm run dev

# Run migrations (creates users, password_reset_tokens tables)
php artisan migrate

# Routes provided by Breeze (in routes/auth.php):
# GET  /login            — login form
# POST /login            — authenticate
# POST /logout           — sign out
# GET  /register         — registration form
# POST /register         — create user
# GET  /forgot-password  — password reset request
# POST /forgot-password  — send reset link email
# GET  /reset-password   — reset form
# POST /reset-password   — update password
# GET  /verify-email     — email verification notice
# GET  /profile          — edit profile

# Protecting routes with auth middleware
# In routes/web.php:
# Route::middleware('auth')->group(function () { ... });