class MailWatcher extends Watcher

Methods

__construct(array $options = [])

Create a new watcher instance.

from  Watcher
void
register(Application $app)

Register the watcher.

setOptions(array $options)

Set the watcher options.

from  Watcher
void
recordMail(MessageSent $event)

Record a mail message was sent.

string
getMailable(MessageSent $event)

Get the name of the mailable.

bool
getQueuedStatus(MessageSent $event)

Determine whether the mailable was queued.

array|null
formatAddresses(array|null $addresses)

Convert the given addresses into a readable format.

Details

in Watcher at line 16
__construct(array $options = [])

Create a new watcher instance.

Parameters

array $options

the configured watcher options

at line 21
void register(Application $app)

Register the watcher.

Parameters

Application $app

Return Value

void

in Watcher at line 29
Watcher setOptions(array $options)

Set the watcher options.

Parameters

array $options

Return Value

Watcher

at line 30
void recordMail(MessageSent $event)

Record a mail message was sent.

Parameters

MessageSent $event

Return Value

void

at line 56
protected string getMailable(MessageSent $event)

Get the name of the mailable.

Parameters

MessageSent $event

Return Value

string

at line 68
protected bool getQueuedStatus(MessageSent $event)

Determine whether the mailable was queued.

Parameters

MessageSent $event

Return Value

bool

at line 80
protected array|null formatAddresses(array|null $addresses)

Convert the given addresses into a readable format.

Parameters

array|null $addresses

Return Value

array|null