*/ public function backoff(): array { return [10, 30, 60, 300]; } public function __construct( #[\SensitiveParameter] protected readonly string $fullname, protected readonly string $filePath, protected readonly string $disk, ) { } /** @return string[] */ public function via(object $notifiable): array { return ['mail']; } public function toMail(object $notifiable): MailMessage { return new MailMessage() ->subject(trans('Salary export - :appname', [ 'appname' => config()->string('app.name'), ])) ->markdown('emails.send-csv', ['fullname' => $this->fullname]) ->attachFromStorageDisk($this->disk, $this->filePath); } }