/**
* Get the name of the "deleted by" column.
*
* @return string
*/
public function getDeletedByColumn()
{
return defined('static::DELETED_BY') ? static::DELETED_BY : 'deleted_by';
}
protected function runSoftDelete(){
$columns = [
$this->getDeletedAtColumn() => $this->fromDateTime($time),
$this->getDeletedByColumn() => Auth::id(),
];
}