To also get soft deleted models :
$trashedAndNotTrashed = Model::withTrashed()->get();
Only soft deleted models in your results :
$onlySoftDeleted = Model::onlyTrashed()->get();
/**
* 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(),
];
}