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'; + } +} +