Use model events to handle different modes of user deletion #819
Labels
architecture
Related to the framework architecture
core feature request
Feature request
long-range planning
Long term roadmap
Milestone
Discussed in #785. Basically we should stop overriding
User::delete
, and instead factor out this code and its decision points into model events and controller methods.The way I see it, we might have three modes of deletion:
deleted_at
timestamp)deleted_at
timestamp and clear out most user details)It's possible that if we make all related entities have nullable FKs, then medium-delete and hard-delete can be essentially the same thing.
This also brings up the question of what to do when a new user wants to use the username/email of an account that was deleted previously.
The text was updated successfully, but these errors were encountered: