isDiagram(), 404); $this->organization = $organization; $this->document = $document; $this->backRoute = $backRoute; $this->name = $document->name; } public function rename(): void { $validated = $this->validate(['name' => 'required|string|max:255']); $this->document->update($validated); $this->renaming = false; } public function saveDiagram(string $xml): void { $contentChanged = $this->document->content !== $xml; $this->document->update(['content' => $xml]); if ($contentChanged) { $this->document->increment('current_version'); $this->document->versions()->create([ 'version' => $this->document->current_version, 'content' => $xml, 'created_by' => auth()->id(), ]); } } }; ?>

{{ $organization->name }}

@if ($renaming)
@error('name')

{{ $message }}

@enderror
@else @endif Retour

@once @endonce