class
Illuminate
/
Mail
/
Mailables
/
Content
Content
Uses
Properties
public
$view string|null
The Blade view that should be rendered for the mailable.
Default: null
public
$html string|null
The Blade view that should be rendered for the mailable.
Alternative syntax for "view".
Default: null
public
$text string|null
The Blade view that represents the text version of the message.
Default: null
public
$markdown string|null
The Blade view that represents the Markdown version of the message.
Default: null
public
$htmlString string|null
The pre-rendered HTML of the message.
Default: null
public
$with array
The message's view data.
Default: null
Methods
public
__construct ( string $view , string $html , string $text , $markdown , array $with , string $htmlString ) : void
Create a new content definition.
Parameters
- $view string|null
- $html string|null
- $text string|null
- $markdown string|null
- $with array
- $htmlString string|null
public
view ( string $view ) : $this
Set the view for the message.
Parameters
- $view string
public
html ( string $view ) : $this
Set the view for the message.
Parameters
- $view string
public
text ( string $view ) : $this
Set the plain text view for the message.
Parameters
- $view string
public
markdown ( string $view ) : $this
Set the Markdown view for the message.
Parameters
- $view string
public
htmlString ( string $html ) : $this
Set the pre-rendered HTML for the message.
Parameters
- $html string
public
with ( $key , $value ) : $this
Add a piece of view data to the message.
Parameters
- $key array|string
- $value mixed|null