public function label($style = 'success')
    {
        return $this->unescape()->as(function ($value) use ($style) {
            if ($value instanceof Arrayable) {
                $value = $value->toArray();
            }

            return collect((array) $value)->map(function ($name) use ($style) {
                return "<span class='label label-{$style}'>$name</span>";
            })->implode('&nbsp;');
        });
    }
public function label($style = 'success')
    {
        return $this->unescape()->as(function ($value) use ($style) {
            if ($value instanceof Arrayable) {
                $value = $value->toArray();
            }

            return collect((array) $value)->map(function ($name) use ($style) {
                return "<span class='label label-{$style}'>$name</span>";
            })->implode('&nbsp;');
        });
    }
public function label ( $ style = 'success' ) { return $ this -> unescape ( ) -> as ( function ( $ value ) use ( $ style ) { if ( $ value instanceof Arrayable ) { $ value = $ value -> toArray ( ) ; } return collect ( ( array ) $ value ) -> map ( function ( $ name ) use ( $ style ) { return "<span class='label label-{$style}'>$name</span>" ; } ) -> implode ( '&nbsp;' ) ; } ) ; }
Show field as labels.

@param string $style

@return Field
Show field as labels .