*/ public $backoff = [2, 5, 10, 30]; public function __construct(public User $user) { $this->onQueue('emails'); } public function envelope(): Envelope { return (new Envelope( subject: __('Your Founder Discount - 80% Off First Period') ))->from(config('mail.from.address', 'hello@example.com'), 'Victor'); } public function content(): Content { return new Content( markdown: 'mail.drip.promo-code', with: [ 'userName' => $this->user->name, 'promoCode' => 'FOUNDER', ], ); } /** * Get the middleware the job should pass through. * * @return array */ public function middleware(): array { return [(new RateLimited('emails'))->releaseAfter(1)]; } }