user = $user; } /** * Get the notification's delivery channels. * * @return array */ public function via() { return ['mail']; } /** * Get the mail representation of the notification. * * @return MailMessage */ public function toMail(): MailMessage { $tuser = $this->user; return (new MailMessage) ->subject("New registration: {$tuser->first_name} {$tuser->last_name}") ->greeting('New registration') ->line("User: {$tuser->first_name} {$tuser->last_name}") ->line("ID: {$tuser->id}") ->line("Email: {$tuser->email}"); } }