Install Breeze

Install Breeze

With Laravel 12 Breeze isn’t included as a starter kit by default anymore so if you want to use it, here’s how:

1. Setup a new Laravel Project

These starter kits are intended to be used at the start of a new project. So run this command with your chosen name at the end and when it asks which starter kit you would like to install choose “none”. Other than that you are free to choose up until where it asks you if you want to run “npm install” and “npm run build” there choose “no”. After it finished enter your new project “cd (your project name.)”.

Bash
laravel new (your project name)

2. Install Laravel Breeze

Run this command to require Laravel Breeze.

Bash
composer require laravel/breeze --dev

3. Install Breeze

Now you can run this command to install Laravel Breeze. After which you can choose which Breeze stack you want (if you Laracasts with Jeffrey then you will probably familiar with “Blade with Alpine”).

Bash
php artisan breeze:install

4. Run migrations

Breeze comes with migrations for the authentication system. Run the migrations to set up the necessary database tables:

Bash
php artisan migrate:fresh

The next 2 steps are not needed when using “Laravel Herd”

5. Compile Assets

If you want to use the default styling, you need to compile the assets using Laravel Mix:

Bash
npm install && npm run dev

6. Serve your Application

Finally, you can serve your application to see Breeze in action:

Bash
php artisan serve

Tags: