class PendingMailFake extends PendingMail

Traits

Properties

protected string|null $locale

The locale of the message.

from  PendingMail
protected mixed $to

The "to" recipients of the message.

from  PendingMail
protected mixed $cc

The "cc" recipients of the message.

from  PendingMail
protected mixed $bcc

The "bcc" recipients of the message.

from  PendingMail

Methods

mixed
when(mixed $value = null, callable|null $callback = null, callable|null $default = null)

Apply the callback if the given "value" is (or resolves to) truthy.

mixed
unless(mixed $value = null, callable|null $callback = null, callable|null $default = null)

Apply the callback if the given "value" is (or resolves to) falsy.

__construct(Mailer $mailer)

Create a new mailable mailer instance.

locale(string $locale)

Set the locale of the message.

to(mixed $users)

Set the recipients of the message.

cc(mixed $users)

Set the recipients of the message.

bcc(mixed $users)

Set the recipients of the message.

send(Mailable $mailable)

Send a new mailable message instance.

sendNow(Mailable $mailable)

Send a new mailable message instance synchronously.

mixed
queue(Mailable $mailable)

Push the given mailable onto the queue.

mixed
later(DateInterval|DateTimeInterface|int $delay, Mailable $mailable)

Deliver the queued message after (n) seconds.

fill(Mailable $mailable)

Populate the mailable with the addresses.

Details

in Conditionable at line 23
mixed when(mixed $value = null, callable|null $callback = null, callable|null $default = null)

Apply the callback if the given "value" is (or resolves to) truthy.

Parameters

mixed $value
callable|null $callback
callable|null $default

Return Value

mixed

in Conditionable at line 56
mixed unless(mixed $value = null, callable|null $callback = null, callable|null $default = null)

Apply the callback if the given "value" is (or resolves to) falsy.

Parameters

mixed $value
callable|null $callback
callable|null $default

Return Value

mixed

in PendingMail at line 41
__construct(Mailer $mailer)

Create a new mailable mailer instance.

Parameters

Mailer $mailer

in PendingMail at line 49
PendingMail locale(string $locale)

Set the locale of the message.

Parameters

string $locale

Return Value

PendingMail

in PendingMail at line 59
PendingMail to(mixed $users)

Set the recipients of the message.

Parameters

mixed $users

Return Value

PendingMail

in PendingMail at line 73
PendingMail cc(mixed $users)

Set the recipients of the message.

Parameters

mixed $users

Return Value

PendingMail

in PendingMail at line 83
PendingMail bcc(mixed $users)

Set the recipients of the message.

Parameters

mixed $users

Return Value

PendingMail

at line 16
SentMessage|null send(Mailable $mailable)

Send a new mailable message instance.

Parameters

Mailable $mailable

Return Value

SentMessage|null

at line 26
SentMessage|null sendNow(Mailable $mailable)

Send a new mailable message instance synchronously.

Parameters

Mailable $mailable

Return Value

SentMessage|null

in PendingMail at line 109
mixed queue(Mailable $mailable)

Push the given mailable onto the queue.

Parameters

Mailable $mailable

Return Value

mixed

in PendingMail at line 120
mixed later(DateInterval|DateTimeInterface|int $delay, Mailable $mailable)

Deliver the queued message after (n) seconds.

Parameters

DateInterval|DateTimeInterface|int $delay
Mailable $mailable

Return Value

mixed

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

Populate the mailable with the addresses.

Parameters

Mailable $mailable

Return Value

Mailable