By default, the active menu item is applied with a current class and its ancestors are applied with a current_ancestor
class. To apply a class other than the default or apply the same class to both, you can either pass it as an option to the
render method of your used renderer:
<?php
$renderer->render($item, ['currentClass' => 'active', 'ancestorClass' => 'active']);
or pass it as argument to the constructor of the used renderer:
<?php
$renderer = new Renderer($matcher, ['currentClass' => 'active', 'ancestorClass' => 'active']);
How can I help you explore Laravel packages today?