What is Laravel Breeze & how to install it in the Laravel application?

vinoy · · 5443 Views

Laravel Breeze is a shiny new package released by Taylor and the Laravel team.

Breeze provides a minimal and simple starting point for building a Laravel application with authentication. Styled with Tailwind, Breeze publishes authentication controllers and views to your application that can be easily customized based on your own application’s needs. 

At the point when Laravel 8 released, It accompanied many new features and improvements. However, alongside it, the Laravel team has released Jetstream for application scaffolding, which accompanies all the fancy odds and ends in-built, for example, login, registration, email verification, two-factor authentication, session management, and optional team management.

It's nice that the framework itself gives every all these features out-of-the-box. But many developers didn’t like this at all and criticized the Laravel team a lot for it. People didn’t like it maybe because, under the hood, Jetstream enforced the use of Livewire or Inertia for scaffolding, and developers didn’t want to learn a new framework/stack to try out Laravel 8.

There was a developing need to have something truly easy that just works. Laravel team reacted to all the criticism, and afterward, thus Laravel Breeze introduced!

Installing Breeze

First, create a new Laravel app:

laravel new my-app

cd my-app

Then require Breeze as development dependency:

composer require laravel/breeze --dev

After installing the breeze package, run the following command to install authentication scaffolding:

php artisan breeze:install

This command will publish all authentication-related views, controllers, request file, route file.

Install node dependecy

npm install && npm run dev

When done, migrate the database by running php artisan migrate which will create essential tables for authentication, for example, users, password_resets, etc in the application's database.

Running Breeze Application

We are done! Our installation is finished. Now we can register a new user and login to our Laravel application.


Please login or create new account to add your comment.

You may also like:

Part #3: Rule objects based custom validation in Laravel

Laravel comes with multiple ways to add custom validation rules to validate form request inputs. I have already explained some of the ways in the following article links:
Harish Kumar

Part #2: How to use Laravel's Validator::extend method for custom validation

Validation is important in any application as it validates a form before performing actions on it. It allows the user to know their input is accurate and confident about the operation (...)
Harish Kumar

Part #1: Closure-based Custom Laravel Validation

While I was working with Laravel, validation using closure came to my mind, and I know it will be helpful to you. This tutorial assists you with all what is the difference between (...)
Harish Kumar

How to use the enumerations(Enums) of PHP 8.1 in Laravel?

The release of PHP 8.1 brings native enumerations to PHP. There is no more requirement for custom solutions in your Laravel projects since the Laravel v8.69 release has you back. (...)
Harish Kumar

Mobile App Development Process

With businesses adopting a mobile-first approach and the growing number of mobile apps, successful mobile app development seems like a quest. But it’s the process that determines (...)
Narola Infotech

What are Laravel Macros and How to Extending Laravel’s Core Classes using Macros with example?

Laravel Macros are a great way of expanding Laravel's core macroable classes and add additional functionality needed for your application. In simple word, Laravel Macro is an (...)
Harish Kumar