Good morning, thanks for your reply.
The conversations were private between the users? No need to redact one half of the conversation?
Yes, they are private. But since GDPR hit us I'm trying to delete everything that I don't need anymore.
I would leave the record alone, just overwrite the previous user's name with something like 'anon' and make up new values for the other fields.
I think I'm going to do it so. Thanks!
Edit
Another question that arises. A user has several tables like: user_privacies user_infosetc. Would you just go to every single table and set the attributes to null?
Currently, it would look like this:
'App\Events\DeleteUserWasCalled' => [
'App\Listeners\User\DeleteAvatar',
'App\Listeners\User\RemoveFromMailchimp',
'App\Listeners\User\RemoveFromStripe',
'App\Listeners\User\RemoveOffers',
'App\Listeners\User\UpdateRelatedTablesToNull',
'App\Listeners\User\RenameUser',
],
Edit 2
Another problem that arises is how the user table is built.
$table->increments('id');
$table->string('name')->unique();
$table->string('email')->unique();
$table->string('password');
...
The name must be unique, so "anon" cannot work out or should I use nullable and set the name to null?