Skip to content

Add support for Laravel 13 and Livewire 4#684

Open
benjibee wants to merge 1 commit intousernotnull:mainfrom
benjibee:main
Open

Add support for Laravel 13 and Livewire 4#684
benjibee wants to merge 1 commit intousernotnull:mainfrom
benjibee:main

Conversation

@benjibee
Copy link

PR Title

Add support for Laravel 13 and Livewire 4

Description

Updates the package to support Laravel 13 and Livewire 4 while maintaining backward compatibility with Laravel 11, 12 and Livewire 3.

Changes:

  • CI workflow: Updated test matrix to cover PHP 8.2/8.3/8.4, Laravel 11/12/13, and the correct Orchestra Testbench mappings (^9.0 for L11, ^10.0 for L12, ^11.0 for L13). Dropped PHP 8.1 and Laravel 10 from the matrix since the package requires PHP ^8.2.
  • Test fix: Updated createFakeComponent() in tests/Pest.php - the helper was calling $this->dehydrate() directly on a Component instance, which no longer exists as a method on the Component class in Livewire 4. Replaced with a direct call to renderedWireToast(), which is the actual trait method under test.

No changes to package source code were needed - the existing Livewire APIs (dehydrate() lifecycle hook, $this->dispatch(), $wire.$entangle()) are all compatible with both Livewire 3 and 4.

Related Issue

N/A

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

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.

1 participant