Skip to content

Laravel Livewire fails to update a component with Model Caching Enabled #377

@aj-norman

Description

@aj-norman

Describe the bug
Laravel Livewire fails to return the next/previous page of a paginated list while Model Caching is enabled. Turning model caching off or using disableModelCaching() on the query restores normal functionality

Eloquent Query
Please provide the complete eloquent query that caused the bug, for example:

$blogs= Blog::where('user_id', '=', Auth::id())
            ->orderByDesc('date')
            ->paginate(10);

Stack Trace
No error is given by the application

Environment

  • PHP: 7.4
  • OS: Ubuntu 20.04
  • Laravel: 8.9
  • Livewire: 2.2.9
  • Model Caching: 0.11.0

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions