CanRenderView
Table of Contents
- render() : mixed
- Shows a document to the user by echoing it (nothing is returned); a view that fails to render with a BladeException, e.g. a missing one, renders the 500 view instead
- legacyOptExpansion() : array<string|int, mixed>
Methods
render()
Shows a document to the user by echoing it (nothing is returned); a view that fails to render with a BladeException, e.g. a missing one, renders the 500 view instead
public
render(string $document[, array<string|int, mixed> $opt = [] ][, string|array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $document : string
-
Path to the view
- $opt : array<string|int, mixed> = []
-
Associative array with values to replace in the view; response, request, user, root, host, absRoot and title are added to it as $opt in the view
- $options : string|array<string|int, mixed> = []
-
Rendering options, e.g., or a string for layout
Return values
mixed —legacyOptExpansion()
private
static legacyOptExpansion(array<string|int, mixed> $opt) : array<string|int, mixed>
Parameters
- $opt : array<string|int, mixed>