src/Helpers/UI/Button.php
protected function renderAttributes()
    {
        $attributes = collect();
        $attributes->put('type', $this->type);
        $attributes->put('class', $this->getStyleClass());

        if ($this->withTooltip) {
            // This is for Bootstrap
            $attributes->put('data-toggle', 'tooltip');
            $attributes->put('data-original-title', $this->getTitle());
        }

        if ($this->disabled) {
            $attributes->put('type', 'button');
            $attributes->put('disabled', 'disabled');
        }

        return html()->attributes($attributes->merge($this->attributes)->toArray());
    }
protected function renderAttributes()
    {
        $attributes = collect();
        $attributes->put('type', $this->type);
        $attributes->put('class', $this->getStyleClass());

        if ($this->withTooltip) {
            // This is for Bootstrap
            $attributes->put('data-toggle', 'tooltip');
            $attributes->put('data-original-title', $this->getTitle());
        }

        if ($this->disabled) {
            $attributes->put('type', 'button');
            $attributes->put('disabled', 'disabled');
        }

        return html()->attributes($attributes->merge($this->attributes)->toArray());
    }
protected function renderAttributes ( ) { $ attributes = collect ( ) ; $ attributes -> put ( 'type' , $ this -> type ) ; $ attributes -> put ( 'class' , $ this -> getStyleClass ( ) ) ; if ( $ this -> withTooltip ) { // This is for Bootstrap $ attributes -> put ( 'data-toggle' , 'tooltip' ) ; $ attributes -> put ( 'data-original-title' , $ this -> getTitle ( ) ) ; } if ( $ this -> disabled ) { $ attributes -> put ( 'type' , 'button' ) ; $ attributes -> put ( 'disabled' , 'disabled' ) ; } return html ( ) -> attributes ( $ attributes -> merge ( $ this -> attributes ) -> toArray ( ) ) ; }
Render the attributes.

@return string
Render the attributes .