/** * Force the result set to only included soft deletes. * * @return \Illuminate\Database\Eloquent\Builder */ public function onlyTrashed() { $this->withTrashed(); $this->query->whereNotNull($this->model->getQualifiedDeletedAtColumn()); return $this; }