Installing Laravel Breeze a starter kit
Laravel Breeze is a lightweight starter kit for Laravel that provides authentication, registration, email verification, and password reset features out of the box. It uses Laravel's built-in authentication features and provides a clean, minimalistic starter template for your project. In this tutorial, we'll go through the steps to install Laravel Breeze in your Laravel project.
Prerequisites
Before we start, make sure you have the following:- A Laravel project (version 8.x or higher)
- Composer installed on your system
JAVASCRIPT
- 1
laravel new your-project-name
Step 1: Install Laravel Breeze
To install Laravel Breeze, open your terminal and navigate to your project directory. Then, run the following command:- 1
composer require laravel/breeze --dev
Step 2: Run Breeze Installer
Once Laravel Breeze is installed, you can run the installer to add authentication to your Laravel project. Run the following command in your terminal:- 1
php artisan breeze:install
Step 3: Run Database Migrations
Before we can use authentication in our Laravel project, we need to run the database migrations. Run the following command in your terminal:- 1
php artisan migrate
Step 4: Build Frontend Assets
Laravel Breeze uses Tailwind CSS for its frontend styling. To build the frontend assets, run the following command in your terminal:- 1
npm install && npm run dev