private function makeItem($type, $properties = [], Closure $callback = null)
    {
        $properties = array_merge($properties, [
            'type' => $type,
            'root' => true,
        ]);

        $item = MenuItem::make($properties, $callback);
        $this->addItem($item);

        return $item;
    }
private function makeItem($type, $properties = [], Closure $callback = null)
    {
        $properties = array_merge($properties, [
            'type' => $type,
            'root' => true,
        ]);

        $item = MenuItem::make($properties, $callback);
        $this->addItem($item);

        return $item;
    }
private function makeItem ( $ type , $ properties = [ ] , Closure $ callback = null ) { $ properties = array_merge ( $ properties , [ 'type' => $ type , 'root' => true , ] ) ; $ item = MenuItem :: make ( $ properties , $ callback ) ; $ this -> addItem ( $ item ) ; return $ item ; }
Make an parent item and add it to the menu.

@param  string        $type
@param  array         $properties
@param  Closure|null  $callback

@return MenuItem
Make an parent item and add it to the menu .