public function handle(UserCreatedEvent $event)
 {
     $user = $event->getUser();
     $plainPassword = $event->getPlainPassword();
     return $this->mailer->send('email.registration', ['username' => $user->email, 'password' => $plainPassword], function ($message) use($user) {
         $message->to($user->email, $user->name)->subject("{$user->name}, your account was created!");
     });
 }
 public function test_constructor()
 {
     $this->assertInstanceOf(User::class, $this->event->getUser());
     $this->assertEquals(123456, $this->event->getPlainPassword());
 }