10000 updating documentation. · allforweb/laravel@92e482d · GitHub
[go: up one dir, main page]

Skip to content

Commit 92e482d

Browse files
committed
updating documentation.
1 parent 798b76d commit 92e482d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

laravel/documentation/views/home.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,13 @@ Each time a view is created, its "composer" event will be fired. You can listen
160160

161161
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.
162162

163+
#### Register a composer that handles multiple views:
164+
165+
View::composer(array('home', 'profile'), function($view)
166+
{
167+
//
168+
});
169+
163170
> **Note:** A view can have more than one composer. Go wild!
164171
165172
<a name="redirects"></a>

0 commit comments

Comments
 (0)
0