From c3691ec346e70c728f830e4aa5bc0d63d647190f Mon Sep 17 00:00:00 2001 From: Reza Lavaryan Date: Fri, 8 Aug 2014 03:50:25 +0430 Subject: [PATCH] Update README.md --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 17ed294..5724104 100644 --- a/README.md +++ b/README.md @@ -330,6 +330,12 @@ To get children of `About` item: about->children(); + + // or outside of the builder context + $aboutSubs = Menu::get('MyNavBar')->about->children(); + + // Or + $aboutSubs = Menu::get('MyNavBar')->item('about')->children(); // ... ?> ``` @@ -345,10 +351,10 @@ To check if an item has any children or not, you can use `hasChildren()` } // or outside of the builder context - Menu::get('MyNavBar')->about->children(); + Menu::get('MyNavBar')->about->hasChildren(); // Or - Menu::get('MyNavBar')->item('about')->children(); + Menu::get('MyNavBar')->item('about')->hasChildren(); // ... ?> ```