Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[10.x] Extract customised deleted_at column name from Model FQN #47873

Merged
merged 3 commits into from Jul 28, 2023
Merged

[10.x] Extract customised deleted_at column name from Model FQN #47873

merged 3 commits into from Jul 28, 2023

Conversation

edvordo
Copy link
Contributor

@edvordo edvordo commented Jul 28, 2023

This pull request handles an use case an user had in issue #47856

When model FQN is passed, it is still possible to extract / determine whether the SoftDeletes model constant to override the default column name was set and use it in tests for assertSoftDeleted and assertNotSoftDeleted.

Looked like a valid use case to me to support it.

Tests passed locally, but unsure if they are sufficient, I'll gladly welcome feedback / suggestions in case they are not.

@taylorotwell taylorotwell merged commit 86d06a9 into laravel:10.x Jul 28, 2023
20 checks passed
@edvordo edvordo deleted the feature/extract-deleted_at-column-name-from-model-fqn branch July 28, 2023 14:27
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.

None yet

2 participants