search

Home  >  Q&A  >  body text

About soft deletion

//Isn’t this sentence the specific operation of soft deletion? False deletion, true update UserModel::update(['is_delete'=>1],['id'=> $user_id]);

//What is the meaning of this sentence?

UserModel::destroy($user_id);

Is the front end to display non-deleted data by default? Adding a condition before rendering is also one line of code ...higher efficiency???

DY。DY。1701 days ago1288

reply all(0)I'll reply

No reply
  • Cancelreply