Laravel Jetstream with Livewire 3
The Laravel team is hard at work upgrading Jetstream to use Livewire 3. With all the changes being made recently, some of the steps in this post may no longer be valid.
The Livewire 3 beta was released live on stage by Caleb Porzio just a few weeks back at Laracon US, and since then, I’ve wanted to give it a try.
To get started, I setup a new Laravel application and used a starter kit. I chose Jetstream instead of Breeze, mainly because I haven’t used Jetstream previously and wanted to give it a try, however, these steps should apply to Breeze as well.
Once you’ve followed the docs and have Jetstream setup, we’ll need to upgrade to Livewire 3 (at the time of this post, Jetstream still uses Livewire 2).
composer require livewire/livewire "^3.0@beta"
Since I was using a fresh install of Jetstream, I decided to give Livewire 3’s auto-updater a try since I only had the default Livewire components.
php artisan livewire:upgrade
This provides a list of questions asking about various upgrade options. I just answered with the default responses for all of them.
After the questions, the next step is to publish the config file.
php artisan livewire:publish --config