Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix eloquent redirects not updating #160

Merged
merged 1 commit into from
Jan 16, 2024
Merged

Fix eloquent redirects not updating #160

merged 1 commit into from
Jan 16, 2024

Conversation

vluijkx
Copy link
Contributor

@vluijkx vluijkx commented Jan 11, 2024

toModel() currently uses firstOrNew to turn a redirect data-object into a model.

However, firstOrNew does not update the first object with the updated properties. Instead, it just returns the outdated model. Which is why you currently can not update eloquent redirects.

@riasvdv riasvdv merged commit 52cde06 into riasvdv:main Jan 16, 2024
8 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants