improved logging

This commit is contained in:
Luca Haid
2025-07-22 09:02:32 +02:00
parent 213500dcd0
commit e2a8d67eee
2 changed files with 29 additions and 1 deletions

View File

@@ -156,6 +156,15 @@ class ConstructionConsentOwnerController extends mfBaseController
$file->delete();
}
$journal = ConstructionConsentJournal::create([
"constructionconsent_id" => $consent->id,
"text" =>
$owner->company ?
"Eigentümer $owner->company wurde gelöscht" :
"Eigentümer $owner->firstname $owner->lastname wurde gelöscht"
]);
$journal->save();
$owner->delete();
$this->layout()->setFlash("Besitzer gelöscht!", "success");