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.)”.
laravel new (your project name)2. Install Laravel Breeze
Run this command to require Laravel Breeze.
composer require laravel/breeze --dev3. 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”).
php artisan breeze:install4. Run migrations
Breeze comes with migrations for the authentication system. Run the migrations to set up the necessary database tables:
php artisan migrate:freshThe 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:
npm install && npm run dev6. Serve your Application
Finally, you can serve your application to see Breeze in action:
php artisan serve