joelbutcher / socialstream

OAuth for Laravel, simplified.
https://docs.socialstream.dev
MIT License
433 stars 66 forks source link

[6.x] retrieve the model to allow deletion to fire model events #381

Closed ivannovak closed 1 month ago

ivannovak commented 1 month ago

Summary

Directly deleting the database entry prevents the deletion model event from firing.

Resolves #382

Explanation

This pull request retrieves the relevant model prior to issuing the deletion so as to trigger the deletion model event.

Checklist