I have a user table and user can delete their account and there data deletes. It's a soft delete. What I want is to delete all attributes except the name.
Can I do something like
$user->delete()->except(['name'']) ?
The record must be soft deleted just with the data removed.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire