src/Select.php
public function displayUsingLabels()
    {
        $this->displayUsing(function ($value) {
            return collect($this->meta['options'])
                    ->where('value', $value)
                    ->first()['label'] ?? $value;
        });

        return $this->withMeta(['displayUsingLabels' => true]);
    }
public function displayUsingLabels()
    {
        $this->displayUsing(function ($value) {
            return collect($this->meta['options'])
                    ->where('value', $value)
                    ->first()['label'] ?? $value;
        });

        return $this->withMeta(['displayUsingLabels' => true]);
    }
public function displayUsingLabels ( ) { $ this -> displayUsing ( function ( $ value ) { return collect ( $ this -> meta [ 'options' ] ) -> where ( 'value' , $ value ) -> first ( ) [ 'label' ] ?? $ value ; } ) ; return $ this -> withMeta ( [ 'displayUsingLabels' => true ] ) ; }
Display values using their corresponding specified labels.

@return $this
Display values using their corresponding specified labels .