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

Update event check for deleted at column to use getDeletedAtColumn #965

Merged
merged 2 commits into from
Oct 20, 2021

Conversation

mo7zayed
Copy link
Contributor

@mo7zayed mo7zayed commented Sep 30, 2021

As per laravel's docs, the deleted_at column name can be changed by the user if he decided to define a constant in the model DELETED_AT.
This PR uses getDeletedAtColumn method provided by SoftDeletes instead of using the column name statically.

Ref: https://github.com/laravel/framework/blob/8.x/src/Illuminate/Database/Eloquent/SoftDeletes.php#L200

@mo7zayed mo7zayed changed the title Update event check for deleted at column by using getDeletedAtColumn Update event check for deleted at column to use getDeletedAtColumn Sep 30, 2021
@Gummibeer
Copy link
Collaborator

https://dev.to/patinthehat/authoring-great-pull-requests-13de

@mo7zayed
Copy link
Contributor Author

mo7zayed commented Oct 2, 2021

@Gummibeer Check now

Copy link
Collaborator

@Gummibeer Gummibeer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, will release it immediately. 🎉

@Gummibeer Gummibeer added bug hacktoberfest https://hacktoberfest.digitalocean.com hacktoberfest-accepted labels Oct 20, 2021
@Gummibeer Gummibeer merged commit c7ea70c into spatie:master Oct 20, 2021
@mo7zayed mo7zayed deleted the issue/wrong-deleted-at-column branch October 20, 2021 16:35
@Gummibeer
Copy link
Collaborator

https://github.com/spatie/laravel-activitylog/releases/tag/4.3.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug hacktoberfest https://hacktoberfest.digitalocean.com hacktoberfest-accepted
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants