*/ public $backoff = [2, 5, 10, 30]; public function __construct(public User $user) { $this->onQueue('emails'); } public function envelope(): Envelope { return new Envelope( from: new Address( config('mail.drip_from.address', 'hi@whisper.money'), config('mail.drip_from.name', 'Álvaro and Víctor'), ), subject: __("How's Your Experience So Far?"), ); } public function content(): Content { return new Content( markdown: 'mail.drip.feedback', with: [ 'userName' => $this->user->name, ], ); } /** * Get the middleware the job should pass through. * * @return array */ public function middleware(): array { return [(new RateLimited('emails'))->releaseAfter(1)]; } }