Introducing Livewire v40:04
Hey everybody. I'm Caleb Porzio, the creator of Livewire Alpine in Flux, and I'm here today and unbelievably excited to show you everything new in Livewire version four. So this has been a huge long journey building V four, fueled by requests from users like you, things that I wanted in the framework, things that other people are doing in other frameworks. This is my Magnum opus to Livewire. It feels like it's finally reached this point
This is my Magnum opus to Livewire. It feels like it's finally reached this point where even when I was recording this whole series, the things I'm building, I'm just smiling. I'm going, this app feels so reactive and dynamic and modern, and that's been the dream of Livewire since the beginning, is that we can take developers like you and me, a single developer with a good knowledge in Laravel and PHP and Blade
and me, a single developer with a good knowledge in Laravel and PHP and Blade and things like that, this little comfy home base. But we can fool all of our users into thinking that we had a big team of JavaScript experts using big frameworks that you feel like you need a PhD in modern JavaScript to even use. Well, we fool 'em all because as a single dev, you built and shipped that whole thing by yourself, soup to nuts,
Well, we fool 'em all because as a single dev, you built and shipped that whole thing by yourself, soup to nuts, which just, that's the dream. And I feel like this is the fulfillment of that dream. We've shored up a lot of things to make the experience even simpler. We've added a lot of things to make it even more powerful. There's just a ton there. So you might be thinking, um, Caleb, I have been using V three for a long time.
Upgrade Path and Compatibility1:23
So you might be thinking, um, Caleb, I have been using V three for a long time. I have a big V three application. I'm excited for V four, but I'm scared. I'm scared that this upgrade is going to take me forever. Well, fear not friend, it won't. Because of how mature Live wire is, we've really put a huge emphasis on backwards compatibility from the beginning. So when you upgrade to live wire for,
compatibility from the beginning. So when you upgrade to live wire for, there are almost no breaking changes. There are a handful, but they're small. It's like a config file or the stream method or something like that. Simple, small little changes that we feel like we had to make to set a good course forward. But you can still have all your components. You can still use everything you're using,
But you can still have all your components. You can still use everything you're using, and you actually just get a lot of improvements for free without changing anything. So go check out the upgrade guide, look at the changes. Again, it's like, look at your config file. Change this name to this name. It's not that big of a deal. Don't be scared. You can incrementally adopt all this new stuff as you go if you want to, and you don't even have to if you don't want to.
Installing Livewire v42:23
stuff as you go if you want to, and you don't even have to if you don't want to. And if you've never used Livewire and you're going, well, how do I get into it? Is it complicated? Or the answer is the same as it's always been? It's so easy if you have a live or if you have a Laravel application and you want to use livewire, you type composer require livewire slash livewire.
and you want to use livewire, you type composer require livewire slash livewire. That's it. You're done. You now have livewire in your app. You can use a component on a page. It has everything it needs. I am in love with how simple Livewire is to install and has always been. And you can also use the starter kits. So if you type something like Laravel New and then you say Layer or Livewire four,
So if you type something like Laravel New and then you say Layer or Livewire four, and then it says, what starter kit do you want you? You hit livewire and now you have Livewire version four, and you have Flux in a Starter Kit, and it's a really nice experience. So without further ado, let's dig into all the good stuff. I'll see you.
