PendingMailFake
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
Apply the callback if the given "value" is (or resolves to) truthy.
Apply the callback if the given "value" is (or resolves to) falsy.
Deliver the queued message after (n) seconds.
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.
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.
in
PendingMail at line 41
__construct(Mailer $mailer)
Create a new mailable mailer instance.
in
PendingMail at line 49
PendingMail
locale(string $locale)
Set the locale of the message.
in
PendingMail at line 59
PendingMail
to(mixed $users)
Set the recipients of the message.
in
PendingMail at line 73
PendingMail
cc(mixed $users)
Set the recipients of the message.
in
PendingMail at line 83
PendingMail
bcc(mixed $users)
Set the recipients of the message.
at line 16
SentMessage|null
send(Mailable $mailable)
Send a new mailable message instance.
at line 26
SentMessage|null
sendNow(Mailable $mailable)
Send a new mailable message instance synchronously.
in
PendingMail at line 109
mixed
queue(Mailable $mailable)
Push the given mailable onto the queue.
in
PendingMail at line 120
mixed
later(DateInterval|DateTimeInterface|int $delay, Mailable $mailable)
Deliver the queued message after (n) seconds.
in
PendingMail at line 132
protected Mailable
fill(Mailable $mailable)
Populate the mailable with the addresses.