Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lavary committed Aug 7, 2014
1 parent 04b1774 commit c3691ec
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,12 @@ To get children of `About` item:
<?php
// ...
$aboutSubs = $menu->about->children();

// or outside of the builder context
$aboutSubs = Menu::get('MyNavBar')->about->children();

// Or
$aboutSubs = Menu::get('MyNavBar')->item('about')->children();
// ...
?>
```
Expand All @@ -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();
// ...
?>
```
Expand Down

0 comments on commit c3691ec

Please sign in to comment.