PendingMailFake
class PendingMailFake extends PendingMail (View source)
Traits
Properties
| 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 |
Methods
Apply the callback if the given "value" is truthy.
Apply the callback if the given "value" is falsy.
Deliver the queued message after the given delay.
Details
$this|mixed
when(mixed $value, callable $callback, callable|null $default = null)
Apply the callback if the given "value" is truthy.
$this|mixed
unless(mixed $value, callable $callback, callable|null $default = null)
Apply the callback if the given "value" is falsy.
void
__construct(Mailer $mailer)
Create a new instance.
$this
locale(string $locale)
Set the locale of the message.
$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.
void
send(Mailable $mailable)
Send a new mailable message instance.
mixed
queue(Mailable $mailable)
Push the given mailable onto the queue.
mixed
later(DateTimeInterface|DateInterval|int $delay, Mailable $mailable)
Deliver the queued message after the given delay.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.