/** * Reset and only includes soft deletes for following queries. * * @return $this */ public function startWithTrashedOnly() { /** * Save to conditons. */ $this->addCondition('onlyTrashed', 'onlyTrashed'); $this->model = $this->model->onlyTrashed(); return $this; }
/** * Reset and only includes soft deletes for following queries. * * @return $this */ public function startWithTrashedOnly() { $this->reset(new Action(__METHOD__, [])); /** * Save to conditons. */ $this->addCondition('onlyTrashed', 'onlyTrashed'); $this->model = $this->model->onlyTrashed(); return $this; }