public function filter($callback)
    {
        if (is_callable($callback)) {
            $this->items = $this->items->filter($callback);
        }

        return $this;
    }
public function filter($callback)
    {
        if (is_callable($callback)) {
            $this->items = $this->items->filter($callback);
        }

        return $this;
    }
public function filter ( $ callback ) { if ( is_callable ( $ callback ) ) { $ this -> items = $ this -> items -> filter ( $ callback ) ; } return $ this ; }
Filter menu items by user callbacks.

@param callable $callback

@return Builder
Filter menu items by user callbacks .