public function touch() { if (!$this->timestamps) { return false; } $this->updateTimestamps(); return $this->save(); }
public function save(Model $model) { if ($model->getDirty()) { return $model->save(); } else { return $model->touch(); } }