MailFake

 class Winter\Storm\Support\Testing\Fakes\MailFake
extends Illuminate\Support\Testing\Fakes\MailFake

Extends

Methods

public buildMailable (string | array $view, array $data, Closure | string $callback, boolean $queued = false) : Winter\Storm\Mail\Mailable

Create a Mailable object from a view file.

Parameters
Property Description
$view
string | array
$data
array
$callback
Closure | string
$queued
boolean
Returns

public queue (Mailable | string | array $view, array $data = null, Closure | string $callback = null, string | null $queue = null) : mixed

Queue a new e-mail message for sending.

Parameters
Property Description
$view
Mailable | string | array
$data
array
$callback
Closure | string
$queue
string | null
Returns
mixed

public send (Mailable | string | array $view, array $data = [], Closure | string $callback = null) : void

Send a new message using a view.

Parameters
Property Description
$view
Mailable | string | array
$data
array
$callback
Closure | string
Returns
void

protected mailablesOf (string $type) : Illuminate\Support\Collection

Get all of the mailed mailables for a given type.

Parameters
Property Description
$type
string
Returns
Illuminate\Support\Collection

protected queuedMailablesOf (string $type) : Illuminate\Support\Collection

Get all of the queued mailables for a given type.

Parameters
Property Description
$type
string
Returns
Illuminate\Support\Collection
Copyright © 2024 Winter CMS