marcorieser/statamic-livewire
Bring Laravel Livewire to Statamic with seamless integration for interactive, reactive components inside your Statamic sites. Build dynamic UIs without heavy JavaScript, use familiar Livewire patterns, and keep content and frontend working smoothly together.
"marcorieser/statamic-livewire": "^4.0" with "marcorieser/statamic-livewire": "^5.0" in your composer.jsonRestoreCurrentSite trait from your components{{ livewire:computed:... }} tags in your viewsDataFetcher helper if you're using it (quite unlikely)Livewire components are now aware of the current site they are in. This means localization is now supported out of the box and Site::current() acts just as you'd expect it to.
Therefore, the deprecated RestoreCurrentSite trait is removed, and you need to remove it from your components.
Computed properties are available in your Antlers views automatically. You can use the property name like any other variable.
For example {{ livewire:computed:entries }} is now {{ entries }}.
Additionally, the DataFetcher helper is removed since it was only used for accessing computed properties behind the scenes.
The synthesizers are now not experimental anymore. But not all types are supported yet.
How can I help you explore Laravel packages today?