Playing
24. How to Install Breeze on Laravel 12

Transcript

00:00
You've probably noticed that the official Laravel Installer has gotten rid of the
00:04
Laravel Breeze option when we create a new project. I'm going to show you very quickly how to get Laravel Breeze installed on a Laravel 12 and above project. So the first thing that we're going to do is just create a project as normal. So let's call this Laravel-Breeze just to keep things simple, but when we get the
00:24
prompt for a starter kit we're going to choose none. We don't want to include one of the new starter kits. Okay so we can go through the database options as normal, so let's choose MySQL here and we'll say yes and yes to run our migrations. We don't necessarily need to run npm install and npm run build. We can do that once we've
00:42
installed Laravel Breeze, so let's just choose no there for now. Okay so we're going to go into the Laravel Breeze directory and we're going to open this up in our editor. Okay so now within your editor's terminal or of course just the terminal that you're already working with, we're going to go ahead and do a composer require on Laravel slash Breeze. I'm going to provide the
01:03
dev option. Let's go ahead and run that. That will pull down all of the Breeze dependencies. We're not quite done though. We need to go ahead and install this which will create this out for us. If we take a look in the browser at the moment you can see we just get the Laravel 12 default splash screen. So back over to here we're going to run php artisan breeze install
01:24
and that's going to go ahead and start off the process that we would usually see when we ran the Laravel new command. So here you can see we can choose any of the options that we're familiar with. I'm going to go ahead and choose view the inertia here just to demonstrate this and of course you can choose any of the optional features. Choose your testing framework. In my case I'll
01:44
always go with pest and we just wait for this to finish. Now once this has finished depending on which option you've chosen you might need to run your migrations again and you'll probably need to run npm install and npm run dev. So just to be on the safe side I'm going to go ahead and run php artisan migrate just in case there are any migrations that have been created and I'm going
02:06
to run npm install and npm run dev to install and build my development dependencies. If we head over to the browser now you can see that we get a familiar splash screen here and we can go ahead and use breeze as normal. So there we go on Laravel 12 and above we can still use breeze we just need to do this in a slightly different way.

Episode summary

In this episode, we're tackling a common confusion you might face with Laravel 12 and above: installing Breeze now that the official Laravel Installer doesn't offer it as a starter kit option out of the box.

Here's what we do step-by-step:

  • We start by creating a new Laravel project like usual but choose none when asked about a starter kit (since Breeze isn't an option anymore).
  • Go through the usual database setup and migrations. We skip npm install and npm run build for now since Breeze isn't installed yet.
  • Jump into your project directory and open it in your editor or terminal.
  • Use Composer to require Breeze (composer require laravel/breeze --dev) to pull in all the Breeze dependencies.
  • Then, run php artisan breeze:install to kick off the starter kit setup. Here, you'll pick your preferred stack (Blade, Inertia, etc.) and optional features, and even pick a testing framework.
  • After installation, you likely need to re-run your migrations and finally run npm install and npm run dev to get your front-end dependencies all set up.

We finish up by refreshing the browser and, voilà, Breeze is good to go with your Laravel 12 project—just follows these slightly new steps. It’s a quick update to your workflow, but everything you love about Breeze is still available!

Episode discussion

No comments, yet. Be the first!