src/Models/MenuGenerator.php
public function divider(int $order = null, array $attributes = []): MenuItem
    {
        return $this->add(['type' => 'divider', 'order' => $order, 'attributes' => $attributes]);
    }
public function divider(int $order = null, array $attributes = []): MenuItem
    {
        return $this->add(['type' => 'divider', 'order' => $order, 'attributes' => $attributes]);
    }
public function divider ( int $ order = null , array $ attributes = [ ] ) : MenuItem { return $ this -> add ( [ 'type' => 'divider' , 'order' => $ order , 'attributes' => $ attributes ] ) ; }
Add new divider item.

@param int   $order
@param array $attributes

@return \Rinvex\Menus\Models\MenuItem
Add new divider item .