*/ public $backoff = [2, 5, 10, 30]; /** * Create a new message instance. */ public function __construct(public UserLead $lead) { $this->onQueue('emails'); } /** * Get the message envelope. */ public function envelope(): Envelope { return new Envelope( from: new Address( config('mail.from.address', 'no-reply@whisper.money'), config('mail.from.name', 'Whisper Money'), ), subject: __("You're on the Whisper Money waiting list!"), ); } /** * Get the message content definition. */ public function content(): Content { return new Content( markdown: 'mail.waitlist-welcome', with: [ 'position' => $this->lead->position, 'referralUrl' => $this->lead->referral_url, ], ); } /** * Get the attachments for the message. * * @return array */ public function attachments(): array { return []; } /** * Get the middleware the job should pass through. * * @return array */ public function middleware(): array { return [(new RateLimited('emails'))->releaseAfter(1)]; } }