interface
Illuminate
/
Contracts
/
View
/
Factory
You are viewing an older version of the documentation. For the latest, please visit master documentation.
Factory
Methods
public
exists ( $view ) : bool
Determine if a given view exists.
Parameters
- $view string
public
file ( $path , $data , $mergeData ) : View
Get the evaluated view contents for the given path.
Parameters
- $path string
- $data Arrayable |array
- $mergeData array
public
make ( $view , $data , $mergeData ) : View
Get the evaluated view contents for the given view.
Parameters
- $view string
- $data Arrayable |array
- $mergeData array
public
share ( $key , $value ) : mixed
Add a piece of shared data to the environment.
Parameters
- $key array|string
- $value mixed
public
composer ( $views , $callback ) : array
Register a view composer event.
Parameters
- $views array|string
- $callback Closure |string
public
creator ( $views , $callback ) : array
Register a view creator event.
Parameters
- $views array|string
- $callback Closure |string
public
addNamespace ( $namespace , $hints ) : $this
Add a new namespace to the loader.
Parameters
- $namespace string
- $hints string|array
public
replaceNamespace ( $namespace , $hints ) : $this
Replace the namespace hints for the given namespace.
Parameters
- $namespace string
- $hints string|array