public function freshTimestamp() { return new MongoDate(); }
/** * Soft delete the record in the database. * * @return int */ protected function softDelete() { $column = $this->model->getDeletedAtColumn(); return $this->update(array($column => $this->model->freshTimestamp())); }