Skip to content

Add support for Livewire 4#45

Merged
christophrumpel merged 5 commits into
christophrumpel:productionfrom
aarongmx:upgrade/livewire-4
Jan 15, 2026
Merged

Add support for Livewire 4#45
christophrumpel merged 5 commits into
christophrumpel:productionfrom
aarongmx:upgrade/livewire-4

Conversation

@aarongmx

Copy link
Copy Markdown
Contributor

Add support for livewire 4

…ers\

  Replace deprecated modifiers (defer, lazy-with-duration) with Livewire 4
  equivalents and add support for new modifiers: deep, number, and fill.
  Also escape property names with preg_quote for special character safety.
@christophrumpel

Copy link
Copy Markdown
Owner

Hey, there are lot of changes, can you comment on why all of those were needed?

@aarongmx

Copy link
Copy Markdown
Contributor Author

The real Livewire 4 migration was minimal (~5-6 lines of actual logic)

The rest was php-cs-fixer enforcing the concat_space rule (spaces around .)

Livewire 4.0 introduced a security feature that tracks checksum validation failures to prevent tampering attacks. When a component method is called via ->call(), Livewire queries the cache to check for previous checksum failures using the key livewire-checksum-failures:{ip}. This is why the cache driver has been set to array in the test environment.

  • Removed defer modifier (now default behavior in v4)
  • lazy.{duration} syntax (deprecated)
  • debounce must now chain with live: wire:model.live.debounce.500ms
  • Property names now escaped with preg_quote() to support dot notation (e.g., user.email)
  • deep - deep binding for nested objects
  • number - casts value to number
  • fill - fills input with model data on load

@christophrumpel christophrumpel merged commit c220384 into christophrumpel:production Jan 15, 2026
6 checks passed
@christophrumpel

Copy link
Copy Markdown
Owner

Thanks a lot 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants