Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

mateoo88's avatar

Installing Livewire into an existing Laravel application.

I have been working on a Laravel application for a while. I have built several modules and I'm using Laravel with Breeze. Now, I could use the livewire functionality, for example, to validate forms on the user side.

However, I read that installing livewire at this point might negatively impact my existing application. Has anyone been in a similar situation and installed livewire on an already existing Laravel application? What is the best way to solve this problem?

0 likes
2 replies
MobyDuck's avatar

I'd been putting off trying to add Livewire to an existing app for a while, but finally bit the bullet. Turns out it's easy - literally:

composer require livewire/livewire

<!-- add the styles and scripts to the pages that will be using Livewire -->
<html>
<head>
    ...
    @livewireStyles
</head>
<body>
    ...
    @livewireScripts
</body>
</html>

And that's it, you're good to go. Aside from adding some extra CSS and JS to page loads, I don't see any impact on existing pages.

Snapey's avatar

make sure you are following the v3 docs. You no longer need to add livewire scripts and styles

1 like

Please or to participate in this conversation.