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 15
bool
exists(string $view)
Determine if a given view exists.
at line 20
View
file(string $path, Arrayable|array $data = [], array $mergeData = [])
Get the evaluated view contents for the given path.
at line 25
View
make(string $view, Arrayable|array $data = [], array $mergeData = [])
Get the evaluated view contents for the given view.
at line 30
View
first(array $views, Arrayable|array $data = [], array $mergeData = [])
Get the first view that actually exists from the given list.
at line 35
mixed
share(array|string $key, mixed $value = null)
Add a piece of shared data to the environment.
at line 40
array
composer(array|string $views, Closure|string $callback)
Register a view composer event.
at line 45
array
creator(array|string $views, Closure|string $callback)
Register a view creator event.
at line 50
Factory
addNamespace(string $namespace, string|array $hints)
Add a new namespace to the loader.
at line 55
Factory
replaceNamespace(string $namespace, string|array $hints)
Replace the namespace hints for the given namespace.
at line 60
void
flushFinderCache()
Flush the cache of located views.