protected function componentData($name)
    {
        return array_merge(
            $this->componentData[count($this->componentStack)],
            ['slot' => trim(ob_get_clean())],
            $this->slots[count($this->componentStack)]
        );
    }
protected function componentData($name)
    {
        return array_merge(
            $this->componentData[count($this->componentStack)],
            ['slot' => trim(ob_get_clean())],
            $this->slots[count($this->componentStack)]
        );
    }
protected function componentData ( $ name ) { return array_merge ( $ this -> componentData [ count ( $ this -> componentStack ) ] , [ 'slot' => trim ( ob_get_clean ( ) ) ] , $ this -> slots [ count ( $ this -> componentStack ) ] ) ; }
Get the data for the given component.

@param  string $name

@return array
Get the data for the given component .