From 03654fc5a1e12fdb647a2ee814066bd59abd24c5 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 6 Sep 2011 23:42:26 -0500 Subject: [PATCH] added better asset documentation. --- laravel/asset.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/laravel/asset.php b/laravel/asset.php index 28ede363..e43c7b1b 100644 --- a/laravel/asset.php +++ b/laravel/asset.php @@ -125,6 +125,14 @@ public function __construct($name, HTML $html) * only link to the registered asset after its dependencies have been linked. * For example, you may wish to make jQuery UI dependent on jQuery. * + * + * // Add an asset to the container + * Asset::container()->add('jquery', 'js/jquery.js'); + * + * // Add an asset that has dependencies + * Asset::container()->add('jquery', 'js/jquery.js', array('jquery-ui')); + * + * * @param string $name * @param string $source * @param array $dependencies