In this episode, we're diving into the process of upgrading an app from Inertia v1 to Inertia v2. We kick things off by checking the current state of our Laravel Breeze application (using Vue) and then walk step-by-step through the upgrade—both the front-end and back-end dependencies. It’s really as simple as running two commands for most setups, and this should work even if you’ve already got an app built with Inertia (as long as you use a starter kit).
After getting everything updated, we do a quick check to make sure the app still works as expected—which it does! Then we talk about the main breaking changes to look out for: Inertia v2 now requires Laravel 10 and PHP 8.1+, so you’ll need to be running up-to-date versions. Vue 2 support has also been dropped as it’s now reached end of life, so Vue 3 is the way to go. There are also changes to partial reloads, which are now asynchronous instead of synchronous—we’ll dedicate a whole episode to this bit soon!
Throughout this course, we use the Laravel Breeze starter kit with Vue and Inertia, and you’re encouraged to do the same if you want to follow along. If you’re spinning up a new project each episode, just make sure you follow the upgrade steps every time.
That's the gist of the upgrade! Not too many breaking changes to worry about, so let's move on to exploring all the new features in the following episodes.