Shift with red gradient lettering
Loading navigation...

Upgrade Livewire 3.x to Livewire 4.x

The Livewire 4.x Shift automates the upgrade of your Laravel application from Livewire 3.x to Livewire 4.x. Using the Livewire 4.x Shift to automatically upgrade your Laravel application has an estimated time savings of 1 hour.

Livewire 4.x is the latest stable release. This means both Livewire and the Livewire 4.x Shift will continue to receive updates.

Screenshot of a pull request with automated changes from the Livewire 4.x Shift

Requirements

  • A Laravel application running Livewire 3.x.

Core Upgrades

The Livewire 4.x Shift automates all of the changes listed in the Livewire Upgrade Guide, including:

  • Merging new configuration options.
  • Adopting Route::livewire().
  • Updating wire:model, wire:scroll, and wire:transition.
  • Closing <livewire> tags.
  • Modernizing deprecated JavaScript APIs.
  • Updating Livewire method signatures.

Additional Upgrades

In addition to the Core Upgrades, the Livewire 4.x Shift performs additional upgrades beyond those listed in the Livewire Upgrade Guide, including:

  • Migrating from Volt to single-file components.
  • Applying your code style.
  • Modernizing PHP syntax, such as short arrays and the null safe operator.
  • Bumping your dependencies for popular packages.

Manual Upgrades

There are some upgrades the Livewire 4.x Shift can not perform automatically. When Shift detects these it adds a detailed comment to the Pull Request to guide any additional steps you may need to do manually.

While Shift attempts to detect and automate the updates for popular packages, you may need to update some of your dependencies manually. Always review the changelog for your dependencies for any additional changes.