Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Statamic Livewire Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Upgrade from v4 to v5

Upgrade steps

  1. Replace "marcorieser/statamic-livewire": "^4.0" with "marcorieser/statamic-livewire": "^5.0" in your composer.json
  2. Remove the RestoreCurrentSite trait from your components
  3. Remove the {{ livewire:computed:... }} tags in your views
  4. Remove the DataFetcher helper if you're using it (quite unlikely)

In details

Multisite / Localization

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

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.

Synthesizers

The synthesizers are now not experimental anymore. But not all types are supported yet.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
codifyo/ts-generator-bundle
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor