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

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners