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

vinoy · · 7010 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.

0

Please login or create new account to add your comment.

0 comments
You may also like:

Building a Real-Time Chat App with Laravel Reverb and Nuxt 3

Building a real-time chat application is a great way to understand the power of WebSockets and real-time communication. In this tutorial, we will walk through creating a Real-Time (...)
Harish Kumar

How to Set Up Nuxt 3 Authentication with Laravel Sanctum (Step-by-Step Guide)

In modern web development, securing your application’s authentication process is a top priority. For developers building Single Page Applications (SPA) or Server-Side Rendered (...)
Harish Kumar

Laracon US 2024: Laravel 11 Minor Features That Enhance Performance

At Laracon US 2024, Taylor Otwell and the Laravel team introduced a series of "minor" features for Laravel 11 that are anything but minor. These enhancements, while not headline-grabbing (...)
Harish Kumar

PHP OPCache: The Secret Weapon for Laravel Performance Boost

OPCache, a built-in PHP opcode cache, is a powerful tool for significantly improving Laravel application speed. This guide will demonstrate how to effectively utilize OPCache to (...)
Harish Kumar

How to Use DTOs for Cleaner Code in Laravel, Best Practices and Implementation Guide

When developing APIs in Laravel, ensuring your responses are clear, concise, and consistent is crucial for creating a maintainable and scalable application. One effective way to (...)
Harish Kumar

Data Type Validation in Laravel Collections with the `ensure()` Method

Before moving on to the ensure() method, let us first know what Laravel Collections actually are. These are wrappers of PHP arrays, offering a fluent and helpful interface in interacting (...)
Harish Kumar