From 92e482de0da02ac0e6b53d5f33572fdd26904fd9 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 19 Apr 2012 08:39:30 -0500 Subject: [PATCH] updating documentation. --- laravel/documentation/views/home.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/laravel/documentation/views/home.md b/laravel/documentation/views/home.md index f96d25f9..1032c7b2 100644 --- a/laravel/documentation/views/home.md +++ b/laravel/documentation/views/home.md @@ -160,6 +160,13 @@ Each time a view is created, its "composer" event will be fired. You can listen 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!