Skip to content

[10.x] Remove SerializesModels from MakeRangeSearchable#930

Merged
taylorotwell merged 1 commit into
laravel:10.xfrom
DougSisk:fix-make-range-searchable
Jul 11, 2025
Merged

[10.x] Remove SerializesModels from MakeRangeSearchable#930
taylorotwell merged 1 commit into
laravel:10.xfrom
DougSisk:fix-make-range-searchable

Conversation

@DougSisk

Copy link
Copy Markdown
Contributor

This is a fix for PR #929.

The SerializesModels trait does not play well with an empty Eloquent model class. It's attempting to load a model and erroring out since there's no ID set. This removes that trait and changes the job to use the class' fully qualified name to avoid any errors from PHP attempting to serialize the class.

@stevebauman

Copy link
Copy Markdown
Contributor

Thanks @DougSisk!

@taylorotwell taylorotwell merged commit 5ac76e8 into laravel:10.x Jul 11, 2025
22 checks 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.

3 participants