otpCode = $otpCode; $this->operatorName = $operatorName; } /** * メールのエンベロープ */ public function envelope(): Envelope { return new Envelope( subject: 'ログイン確認用OTPコード(有効期限:10分間)' ); } /** * メールのコンテンツ */ public function content(): Content { return new Content( view: 'emails.otp', with: [ 'otpCode' => $this->otpCode, 'operatorName' => $this->operatorName, ] ); } /** * メールの添付ファイル */ public function attachments(): array { return []; } }