News

Laravel Jetstream 4.0 with Livewire 3 support

Published
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.

Sponsored

serpapi logo
SerpApi

The Web Search API for Your LLM and AI Applications

Visit SerpApi

The latest

View all →
CPX: The Composer Package Executor for PHP image

CPX: The Composer Package Executor for PHP

Read article
Laravel AI SDK Adds Human-in-the-Loop Tool Approval image

Laravel AI SDK Adds Human-in-the-Loop Tool Approval

Read article
Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals image

Pest 5 Released With Test Impact Analysis, Agent Verification, and Evals

Read article
Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs image

Queue-SQL: Run Mass Deletes and Updates Across Parallel Queue Jobs

Read article
Blade Formatting in Laravel Pint image

Blade Formatting in Laravel Pint

Read article
Inertia DevTools Is Now on the Chrome Web Store image

Inertia DevTools Is Now on the Chrome Web Store

Read article