uuid = $uuid; $this->lang = $lang; // 如果未传入 Dashboard 地址,则使用配置项 $this->dashboardUrl = $dashboardUrl ?: config('mint.server.dashboard_base_path'); } /** * Get the message envelope. * * 用于定义邮件头信息(如 subject、from、reply-to 等)。 */ public function envelope(): Envelope { return new Envelope( subject: 'Wikipali Invite Email', ); } /** * Get the message content definition. * * 用于定义邮件内容视图及其绑定的数据。 */ public function content(): Content { return new Content( view: 'emails.invite.' . $this->lang, with: [ // 邀请注册链接 'url' => $this->dashboardUrl . '/anonymous/users/sign-up/' . $this->uuid, ], ); } }