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