Playing
01. How to Install Breeze on Laravel 12

Episodes

0%
Your progress
  • Total: 2m
  • Played: 0m
  • Remaining: 2m
Join or sign in to track your progress

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.
1 episode 2 mins

Overview

With Laravel 12, the Laravel installer no longer gives us the option to install Breeze. Here's how to install Breeze in a fresh Laravel 12 application.

Alex Garrett-Smith
Alex Garrett-Smith
Hey, I'm the founder of Codecourse!

Episode discussion

No comments, yet. Be the first!