refactor: Relocate real-time mutation broadcasts to model hooks

This commit is contained in:
Daan Meijer
2026-06-23 11:38:06 +02:00
parent d68fc33bcb
commit af1eabfa01
2 changed files with 9 additions and 6 deletions
@@ -71,9 +71,6 @@ class MutationController extends Controller
return $mutation;
});
// Broadcast the real-time creation event!
broadcast(new MutationCreated($mutation));
return redirect()->route('dynamics.ledgers.show', [$dynamic, $ledger]);
}
@@ -149,9 +146,6 @@ class MutationController extends Controller
}
broadcast(new MessageSent($dynamicMsg));
// Broadcast the real-time update event!
broadcast(new MutationUpdated($mutation));
return redirect()->back();
}