*/ public $backoff = [2, 5, 10, 30]; public function __construct( public User $user, public int $removedConnectionsCount, ) { $this->onQueue('emails'); } 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: __('Your bank connections were disconnected'), ); } public function content(): Content { return new Content( markdown: 'mail.enable-banking-connections-cancelled', with: [ 'userName' => $this->user->name, 'removedConnectionsCount' => $this->removedConnectionsCount, ], ); } /** * Get the middleware the job should pass through. * * @return array */ public function middleware(): array { return [(new RateLimited('emails'))->releaseAfter(1)]; } }