*/ public $backoff = [2, 5, 10, 30]; public function __construct(public User $user) { $this->onQueue('emails'); } public function envelope(): Envelope { return new Envelope( subject: __("How's Your Experience So Far?"), )->from(config('mail.from.address', 'hello@example.com'), 'Victor'); } 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)]; } }