Category: Laravel, PHP

When you use a Livewire component on a page in your app, it FEELS as if your browser has a LIVE connection to that component on the server. If a user clicks a button that changes a property in your component, everything updates as if there really is a “live” wire.

Behind the scenes, on the server, Livewire “hydrates” or un-freezes your PHP component and allows you to use it as if it’s been running on the server the entire time.

It is does this by reducing those properties down to plain JSON when the component is “frozen” and then re-instantiating the object when the component is “un-frozen”.

The best way to understand this functionality is to open up your browser’s devtools while using Livewire and inspect the XHR (ajax) request/response payloads.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners