AnonymousViewCompiler
in package
Compile any Blade file using the Blade facade as it allows us to render it without having to register the directory with the view finder.
Table of Contents
Properties
Methods
- __construct() : mixed
- __invoke() : string
- handle() : string
Properties
$data
protected
array<string|int, mixed>
$data
$viewPath
protected
string
$viewPath
Methods
__construct()
public
__construct(string $viewPath[, array<string|int, mixed> $data = [] ]) : mixed
Parameters
- $viewPath : string
- $data : array<string|int, mixed> = []
__invoke()
public
__invoke() : string
Return values
stringhandle()
public
static handle(string $viewPath[, array<string|int, mixed> $data = [] ]) : string
Parameters
- $viewPath : string
- $data : array<string|int, mixed> = []