updated_by = $id; $history->created_by = $id; } return $history; } else { throw new Exception("履歴モデル不正"); } } public function getChangeLogMessage($before, $after): ?string { return null; } public function setId(?string $uuid = null) { if ($this->id !== null) return; if ($uuid) { $this->id = $uuid; } else { $this->id = Str::uuid(); } } }