Factory
interface Factory
Methods
bool
exists(string $view)
Determine if a given view exists.
mixed
share(array|string $key, mixed $value = null)
Add a piece of shared data to the environment.
addNamespace(string $namespace, string|array $hints)
Add a new namespace to the loader.
replaceNamespace(string $namespace, string|array $hints)
Replace the namespace hints for the given namespace.
void
flushFinderCache()
Flush the cache of located views.
Details
at line 16
bool
exists(string $view)
Determine if a given view exists.
at line 21
View
file(string $path, Arrayable|array $data = [], array $mergeData = [])
Get the evaluated view contents for the given path.
at line 26
View
make(string $view, Arrayable|array $data = [], array $mergeData = [])
Get the evaluated view contents for the given view.
at line 31
View
first(array $views, Arrayable|array $data = [], array $mergeData = [])
Get the first view that actually exists from the given list.
at line 36
mixed
share(array|string $key, mixed $value = null)
Add a piece of shared data to the environment.
at line 42
array
composer(array|string $views, Closure|string $callback)
Register a view composer event.
at line 47
array
creator(array|string $views, Closure|string $callback)
Register a view creator event.
at line 54
Factory
addNamespace(string $namespace, string|array $hints)
Add a new namespace to the loader.
at line 62
Factory
replaceNamespace(string $namespace, string|array $hints)
Replace the namespace hints for the given namespace.
at line 68
void
flushFinderCache()
Flush the cache of located views.