class PendingMailFake extends PendingMail

Properties

protected array $mailer

The mailer instance.

from  PendingMail
protected array $to

The "to" recipients of the message.

from  PendingMail
protected array $cc

The "cc" recipients of the message.

from  PendingMail
protected array $bcc

The "bcc" recipients of the message.

from  PendingMail

Methods

void
__construct(Mailer $mailer)

Create a new instance.

$this
to(mixed $users)

Set the recipients of the message.

$this
cc(mixed $users)

Set the recipients of the message.

$this
bcc(mixed $users)

Set the recipients of the message.

mixed
send(Mailable $mailable)

Send a new mailable message instance.

mixed
sendNow(Mailable $mailable)

Send a mailable message immediately.

mixed
queue(Mailable $mailable)

Push the given mailable onto the queue.

mixed
later(DateTime|int $delay, Mailable $mailable)

Deliver the queued message after the given delay.

fill(Mailable $mailable)

Populate the mailable with the addresses.

Details

at line 16
void __construct(Mailer $mailer)

Create a new instance.

Parameters

Mailer $mailer

Return Value

void

in PendingMail at line 54
$this to(mixed $users)

Set the recipients of the message.

Parameters

mixed $users

Return Value

$this

in PendingMail at line 67
$this cc(mixed $users)

Set the recipients of the message.

Parameters

mixed $users

Return Value

$this

in PendingMail at line 80
$this bcc(mixed $users)

Set the recipients of the message.

Parameters

mixed $users

Return Value

$this

at line 27
mixed send(Mailable $mailable)

Send a new mailable message instance.

Parameters

Mailable $mailable

Return Value

mixed

at line 38
mixed sendNow(Mailable $mailable)

Send a mailable message immediately.

Parameters

Mailable $mailable

Return Value

mixed

at line 49
mixed queue(Mailable $mailable)

Push the given mailable onto the queue.

Parameters

Mailable $mailable

Return Value

mixed

in PendingMail at line 137
mixed later(DateTime|int $delay, Mailable $mailable)

Deliver the queued message after the given delay.

Parameters

DateTime|int $delay
Mailable $mailable

Return Value

mixed

in PendingMail at line 148
protected Mailable fill(Mailable $mailable)

Populate the mailable with the addresses.

Parameters

Mailable $mailable

Return Value

Mailable