Skip to content

Commit

Permalink
Use available accessor.
Browse files Browse the repository at this point in the history
Signed-off-by: crynobone <crynobone@gmail.com>
  • Loading branch information
crynobone committed Nov 13, 2015
1 parent 81e42d1 commit a2aed2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/MenuHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ protected function attachIcon(Fluent $menu = null)
protected function attachNestedMenu($id)
{
$with = isset($this->menu['with']) ? $this->menu['with'] : [];
$parent = isset($this->menu['position']) ? $this->menu['position'] : '';
$parent = $this->getAttribute('position');
$position = Str::startsWith($parent, '^:') ? $parent.'.' : '^:';

foreach ((array) $with as $class) {
Expand Down

0 comments on commit a2aed2c

Please sign in to comment.