public function add(Item $item)
    {
        foreach ($this->filters as $filter) {
            $this->applyFilter($filter, $item);
        }

        $this->items[] = $item;

        return $this;
    }
public function add(Item $item)
    {
        foreach ($this->filters as $filter) {
            $this->applyFilter($filter, $item);
        }

        $this->items[] = $item;

        return $this;
    }
public function add ( Item $ item ) { foreach ( $ this -> filters as $ filter ) { $ this -> applyFilter ( $ filter , $ item ) ; } $ this -> items [ ] = $ item ; return $ this ; }
Add an item to the menu. This also applies all registered filters to the
item.

@param \Spatie\Menu\Item $item

@return $this
Add an item to the menu . This also applies all registered filters to the item .