Laravel Jetstream 4.0 with Livewire 3 support

Published on by

Laravel Jetstream 4.0 with Livewire 3 support image

Laravel Jetstream v4.0 is now released and includes support for the just-released Livewire v3.

Jetstream Upgrading Process

Upgrading to Jetstream 4.0 is pretty straightforward, but it has a few steps outlined on the upgrade guide. Here is a brief overview:

Update composer.json

Change your jetstream line in composer.json to:

"laravel/jetstream": "^4.0",

Then run composer update

Update your Alpine Scripts

Livewire 3 ships with Alpine by default, so you do not need to include it in your application's resources/js/app.js file.

You should include @livewireStyles and @livewireScripts in your application's resources/views/layouts/guest.blade.php file since Alpine is used by "guest" components published by Jetstream:

<!-- Scripts -->
@vite(['resources/css/app.css', 'resources/js/app.js'])
+
+ <!-- Styles -->
+ @livewireStyles
</head>
<body>
<div class="font-sans text-gray-900 dark:text-gray-100 antialiased">
{{ $slot }}
</div>
+
+ @livewireScripts
</body>

Conclusion

Developers interested in getting started with these new features are encouraged to consult the official Laravel Jetstream documentation and the Livewire documentation for comprehensive guides and tutorials.

Eric L. Barnes photo

Eric is the creator of Laravel News and has been covering Laravel since 2012.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.

image
Honeybadger

Fix Laravel errors in record time. Fill in the gaps with uptime, cron, and heartbeat monitoring. Build trust with status pages and incident management—all in one simple platform.

Visit Honeybadger

The latest

View all →
Laravel 10.34 Released image

Laravel 10.34 Released

Read article
Laravel Tailwind Merge image

Laravel Tailwind Merge

Read article
Generate Validation Rules from a Database Schema in Laravel image

Generate Validation Rules from a Database Schema in Laravel

Read article
A Feature Flags Implementation for Filament image

A Feature Flags Implementation for Filament

Read article
Write API Integrations and SDKs in an Elegant Way image

Write API Integrations and SDKs in an Elegant Way

Read article
PHP 8.3 is released with typed class constants, a json_validate function, and more image

PHP 8.3 is released with typed class constants, a json_validate function, and more

Read article
Honeybadger logo

Honeybadger

Zero-instrumentation, 360 degree coverage of errors, outages and service degradation.

Honeybadger
Laravel Forge logo

Laravel Forge

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Forge
Oh Dear logo

Oh Dear

Oh Dear is the best all-in-one monitoring tool for all your Laravel apps.

Oh Dear
Tinkerwell logo

Tinkerwell

The must-have code runner for Laravel developers. Tinker with AI, autocompletion and instant feedback on local and production environments.

Tinkerwell
Kirschbaum logo

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum
Shift logo

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift
Bacancy logo

Bacancy

Supercharge your project with a seasoned Laravel developer with 4-6 years of experience for just $2500/month. Get 160 hours of dedicated expertise & a risk-free 15-day trial. Schedule a call now!

Bacancy
LoadForge logo

LoadForge

Easy, affordable load testing and stress tests for websites, APIs and databases.

LoadForge
Paragraph logo

Paragraph

Manage your Laravel app as if it was a CMS – edit any text on any page or in any email without touching Blade or language files.

Paragraph
Lucky Media logo

Lucky Media

Bespoke software solutions built for your business. Partner with Lucky Media, your favorite Laravel Development Agency!

Lucky Media
Lunar: Laravel E-Commerce logo

Lunar: Laravel E-Commerce

E-Commerce for Laravel. An open-source package that brings the power of modern headless e-commerce functionality to Laravel.

Lunar: Laravel E-Commerce