public function getSoftDeleteField()
{
if (isset($this->softDeleteField)) {
$field = $this->softDeleteField;
} else {
$field = 'deleted';
}
if ($this->schema()->column($field) === null) {
throw new MissingColumnException(__('Configured field `{0}` is missing from the table `{1}`.', $field, $this->alias()));
}
return $field;
}