class Markdown (View source)
protected Factory | $view | The view factory implementation. | |
protected string | $theme | The current theme being used when generating emails. | |
protected array | $componentPaths | The registered component paths. |
void | __construct(Factory $view, array $options = []) Create a new Markdown renderer instance. | |
HtmlString | render(string $view, array $data = [], CssToInlineStyles|null $inliner = null) Render the Markdown template into HTML. | |
HtmlString | renderText(string $view, array $data = []) Render the Markdown template into text. | |
static HtmlString | parse(string $text) Parse the given Markdown text into HTML. | |
array | htmlComponentPaths() Get the HTML component paths. | |
array | textComponentPaths() Get the text component paths. | |
array | componentPaths() Get the component paths. | |
void | loadComponentsFrom(array $paths = []) Register new mail component paths. | |
$this | theme(string $theme) Set the default theme to be used. |
Create a new Markdown renderer instance.
Render the Markdown template into HTML.
Render the Markdown template into text.
Parse the given Markdown text into HTML.
Get the HTML component paths.
Get the text component paths.
Get the component paths.
Register new mail component paths.
Set the default theme to be used.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Mail/Markdown.html