Factory

Factory

interface Factory (View source)

Methods

bool exists(string $view)

Determine if a given view exists.

View file(string $path, array $data = array(), array $mergeData = array())

Get the evaluated view contents for the given path.

View make(string $view, array $data = array(), array $mergeData = array())

Get the evaluated view contents for the given view.

mixed share(array|string $key, mixed $value = null)

Add a piece of shared data to the environment.

array composer(array|string $views, Closure|string $callback, int|null $priority = null)

Register a view composer event.

array creator(array|string $views, Closure|string $callback)

Register a view creator event.

void addNamespace(string $namespace, string|array $hints)

Add a new namespace to the loader.

doc_Laravel
2016-11-02 16:17:43
Comments
Leave a Comment

Please login to continue.