MailFake

MailFake

class MailFake implements Mailer (View source)

Methods

void assertSent(string $mailable, callable|null $callback = null)

Assert if a mailable was sent based on a truth-test callback.

void assertSentTo(mixed $users, string $mailable, callable|null $callback = null)

Assert if a mailable was sent based on a truth-test callback.

void assertNotSent(string $mailable, callable|null $callback = null)

Determine if a mailable was sent based on a truth-test callback.

Collection sent(string $mailable, callable|null $callback = null)

Get all of the mailables matching a truth-test callback.

bool hasSent(string $mailable)

Determine if the given mailable has been sent.

MailableMailer to(mixed $users)

Begin the process of mailing a mailable class instance.

MailableMailer bcc(mixed $users)

Begin the process of mailing a mailable class instance.

int raw(string $text, Closure|string $callback)

Send a new message when only a raw text part.

void send(string|array $view, array $data = array(), Closure|string $callback = null)

Send a new message using a view.

array failures()

Get the array of failed recipients.

doc_Laravel
2016-11-02 16:24:32
Comments
Leave a Comment

Please login to continue.