/** * Create divider item * * @access public * @param array $attributes (default: []) * @return $this */ public function divider(array $attributes = []) { $items = $this->get('items'); $items[] = Divider::make($attributes); $this->set('items', $items); return $this; }
/** * Add divider item tor menu collection * * @access public * @return $this */ public function divider(array $attributes = []) { $item = Divider::make($attributes); $this->items[] = $item; return $this; }