Halte Auswirkung und Rückzug beim Veröffentlichen eines Artikel-Stands fest.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
fd6860efda
commit
fef0ea2ac2
11 files changed
+298
-25
No files matched your search
@@ -10,8 +10,8 @@ trait ReportsDomainRules
|
||||
protected function report(callable $callback, string $success): void
|
||||
{
|
||||
try {
|
||||
$callback();
|
||||
Notification::make()->title($success)->success()->send();
|
||||
$detail = $callback();
|
||||
Notification::make()->title(is_string($detail) && $detail !== '' ? $detail : $success)->success()->send();
|
||||
} catch (DomainRuleException $exception) {
|
||||
Notification::make()->title($exception->getMessage())->danger()->send();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user