Closed aghayeff closed 7 years ago
Hi @aghayeff
I added new feature via your suggestion. Now passed parent element to closure function. If has not parent element of current elements is passed null
, Please update package.
Example:
<?php
Menu::route(function($href, $label, $parent) {
return \URL::to($href);
})->renderAsHtml();
Thanks! I appreciate
Well, lets look through this example:
Is it possible to generate deep url for sub categories?
Instead of
<li><a href="s-size">S size</a><li>
generate
<li><a href="red-t-shirt/s-size">S size</a><li>