From bed8c79c0a0fd0b063fd65e4f19ded477cf32bc1 Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Thu, 12 Mar 2026 09:40:29 +0100 Subject: [PATCH] create event on user validated --- app/Events/UserValidated.php | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 app/Events/UserValidated.php diff --git a/app/Events/UserValidated.php b/app/Events/UserValidated.php new file mode 100644 index 0000000..522c602 --- /dev/null +++ b/app/Events/UserValidated.php @@ -0,0 +1,44 @@ +user = $user; + } + + /** + * Get the channels the event should broadcast on. + * + * @return array + */ + public function broadcastOn(): array + { + return [ + new privateChannel('users.admin'), + ]; + } + + public function broadcastAs() + { + return 'users.validation'; + } +} +