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