[users-module] - UserWasDeleted Event is fired in both Delete and Trash
Created 7 years ago by lckamalI wanted to clear data from my Profiles module if user is force deleted (record is deleted from table)
but while using Anomaly\UsersModule\User\Event\UserWasDeleted
, This event fires on both case delete/force delete.
how to know if user is deleted or force deleted?
ryanthompson
—
7 years ago
Hmm interesting, yes. Make an issue for it - seems like it should only fire during delete.. not force delete.
Any EloquentModel has the
isForceDeleting()
method...