*/ 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( subject: 'Your early access to Whisper Money is ready', ); } /** * Get the message content definition. */ public function content(): Content { return new Content( markdown: 'mail.user-lead-invitation', ); } /** * 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)]; } }