Skip to content

[12.x] Prevent relation autoload context from being serialized#55582

Merged
taylorotwell merged 1 commit into
laravel:12.xfrom
litvinchuk:relation-autoload-fix-serialization
Apr 28, 2025
Merged

[12.x] Prevent relation autoload context from being serialized#55582
taylorotwell merged 1 commit into
laravel:12.xfrom
litvinchuk:relation-autoload-fix-serialization

Conversation

@litvinchuk

Copy link
Copy Markdown
Contributor

Excludes relationAutoloadContext from serialization since it will be automatically re-initialized when relation autoloading is activated after deserialization.

This helps keep the serialized model smaller and cleaner.

@taylorotwell taylorotwell merged commit bb69654 into laravel:12.x Apr 28, 2025
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