Repositories/Menu/MenuRepository.php
public function getItemUuiD($menuItem)
    {
        $itemID = '';
        if (is_a($menuItem, MenuItem::class)) {
            $itemID = 'MenuItem'.$menuItem->getURL();
        }

        if (is_a($menuItem, MenuBuilder::class)) {
            $itemID = 'MenuBuilder'.$menuItem->getName();
        }

        return Str::limit(md5(Str::slug($itemID)), 12, null);
    }
public function getItemUuiD($menuItem)
    {
        $itemID = '';
        if (is_a($menuItem, MenuItem::class)) {
            $itemID = 'MenuItem'.$menuItem->getURL();
        }

        if (is_a($menuItem, MenuBuilder::class)) {
            $itemID = 'MenuBuilder'.$menuItem->getName();
        }

        return Str::limit(md5(Str::slug($itemID)), 12, null);
    }
public function getItemUuiD ( $ menuItem ) { $ itemID = '' ; if ( is_a ( $ menuItem , MenuItem :: class ) ) { $ itemID = 'MenuItem' . $ menuItem -> getURL ( ) ; } if ( is_a ( $ menuItem , MenuBuilder :: class ) ) { $ itemID = 'MenuBuilder' . $ menuItem -> getName ( ) ; } return Str :: limit ( md5 ( Str :: slug ( $ itemID ) ) , 12 , null ) ; }
Generate Item uuid.

@param $menuName
@param $itemURL

@return string
Generate Item uuid .