Correction status:qualified
Teacher's comments:
先查询出不为0的数据
$staff = StaffModel::onlyTrashed()->find(function($query){
$query->where('delete_time','<>',0);
});
//执行模型的回复方法
$staff->restore();