MailableFake
class MailableFake extends MailableMailer (View source)
Properties
| protected array | $mailer | The mailer instance. | from MailableMailer |
| protected array | $to | The "to" recipients of the message. | from MailableMailer |
| protected array | $cc | The "cc" recipients of the message. | from MailableMailer |
| protected array | $bcc | The "bcc" recipients of the message. | from MailableMailer |
| mixed | $mailable | The mailable instance. |
Methods
| void | __construct() Create a new instance. | |
| $this | to(mixed $users) Set the recipients of the message. | from MailableMailer |
| $this | cc(mixed $users) Set the recipients of the message. | from MailableMailer |
| $this | bcc(mixed $users) Set the recipients of the message. | from MailableMailer |
| 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. | from MailableMailer |
| Mailable | fill(Mailable $mailable) Populate the mailable with the addresses. | from MailableMailer |
| array | getRecipients() Get the recipient information for the mailable. |
Details
void __construct()
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.
array getRecipients()
Get the recipient information for the mailable.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Support/Testing/Fakes/MailableFake.html