class SendRecoveryCodeJob implements ShouldQueue (View source)

Job responsible for asynchronously sending a recovery code e-mail.

This job delegates the actual sending logic to the EmailService and ensures that the operation is executed through Laravel's queue system.

Traits

Dispatchable
InteractsWithQueue
Queueable
SerializesModels

Properties

protected string $to

Recipient e-mail address.

protected string $name

Recipient full name.

protected string $code

Recovery code to be sent.

Methods

__construct(string $to, string $name, string $code)

Create a new job instance.

void
handle(EmailService $emailService)

Execute the job.

Details

__construct(string $to, string $name, string $code)

Create a new job instance.

Parameters

string $to

recipient e-mail address

string $name

recipient full name

string $code

recovery code to be delivered

void handle(EmailService $emailService)

Execute the job.

Parameters

EmailService $emailService

service responsible for sending emails

Return Value

void