class PendingMailFake extends PendingMail (View source)
| Conditionable |
| protected Mailer | $mailer | The mailer instance. | from PendingMail |
| protected string | $locale | The locale of the message. | 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 |
| $this|TWhenReturnType | when($value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) truthy. | from Conditionable |
| $this|TUnlessReturnType | unless($value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) falsy. | from Conditionable |
| void | __construct(Mailer $mailer)
Create a new instance. | |
| $this | locale(string $locale)
Set the locale of the message. | from PendingMail |
| $this | to(mixed $users)
Set the recipients of the message. | from PendingMail |
| $this | cc(mixed $users)
Set the recipients of the message. | from PendingMail |
| $this | bcc(mixed $users)
Set the recipients of the message. | from PendingMail |
| SentMessage|null | send(Mailable $mailable)
Send a new mailable message instance. | |
| SentMessage|null | sendNow(Mailable $mailable)
Send a new mailable message instance synchronously. | |
| mixed | queue(Mailable $mailable)
Push the given mailable onto the queue. | |
| mixed | later(DateTimeInterface|DateInterval|int $delay, Mailable $mailable)
Deliver the queued message after (n) seconds. | from PendingMail |
| Mailable | fill(Mailable $mailable)
Populate the mailable with the addresses. | from PendingMail |
Apply the callback if the given "value" is (or resolves to) truthy.
Apply the callback if the given "value" is (or resolves to) falsy.
Create a new instance.
Set the locale of the message.
Set the recipients of the message.
Set the recipients of the message.
Set the recipients of the message.
Send a new mailable message instance.
Send a new mailable message instance synchronously.
Push the given mailable onto the queue.
Deliver the queued message after (n) seconds.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Support/Testing/Fakes/PendingMailFake.html