*/ public $backoff = [2, 5, 10, 30]; public function __construct( public User $user, public BankingConnection $bankingConnection, ) { $this->onQueue('emails'); } public function envelope(): Envelope { return new Envelope( subject: __('Action required: :provider connection needs attention', [ 'provider' => $this->bankingConnection->aspsp_name, ]), ); } public function content(): Content { return new Content( markdown: 'mail.banking-connection-auth-failed', with: [ 'userName' => $this->user->name, 'providerName' => $this->bankingConnection->aspsp_name, ], ); } /** * Get the middleware the job should pass through. * * @return array */ public function middleware(): array { return [(new RateLimited('emails'))->releaseAfter(1)]; } }