updating documentation.
This commit is contained in:
parent
798b76d8d0
commit
92e482de0d
|
@ -160,6 +160,13 @@ #### Register a view composer for the "home" view:
|
|||
|
||||
Now each time the "home" view is created, an instance of the View will be passed to the registered Closure, allowing you to prepare the view however you wish.
|
||||
|
||||
#### Register a composer that handles multiple views:
|
||||
|
||||
View::composer(array('home', 'profile'), function($view)
|
||||
{
|
||||
//
|
||||
});
|
||||
|
||||
> **Note:** A view can have more than one composer. Go wild!
|
||||
|
||||
<a name="redirects"></a>
|
||||
|
|
Loading…
Reference in New Issue