src/Models/MenuItem.php
protected function hasActiveStateFromChilds(): bool
    {
        return $this->getChilds()->contains(function (MenuItem $child) {
            return ($child->hasChilds() && $child->hasActiveStateFromChilds())
                       || ($child->route && $child->hasActiveStateFromRoute())
                       || $child->isActive() || $child->hasActiveStateFromUrl();
        }) ?? false;
    }
protected function hasActiveStateFromChilds(): bool
    {
        return $this->getChilds()->contains(function (MenuItem $child) {
            return ($child->hasChilds() && $child->hasActiveStateFromChilds())
                       || ($child->route && $child->hasActiveStateFromRoute())
                       || $child->isActive() || $child->hasActiveStateFromUrl();
        }) ?? false;
    }
protected function hasActiveStateFromChilds ( ) : bool { return $ this -> getChilds ( ) -> contains ( function ( MenuItem $ child ) { return ( $ child -> hasChilds ( ) && $ child -> hasActiveStateFromChilds ( ) ) || ( $ child -> route && $ child -> hasActiveStateFromRoute ( ) ) || $ child -> isActive ( ) || $ child -> hasActiveStateFromUrl ( ) ; } ) ?? false ; }
Check if the item has active state from childs.

@return bool
Check if the item has active state from childs .