original_string: 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;');
          });
      }
code: 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;');
          });
      }
code_tokens: 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;' ) ; } ) ; }
docstring: Show field as labels.
  
  @param string $style
  
  @return Field
docstring_tokens: Show field as labels .