original_string: protected function getOptionsFromModel()
      {
          if (is_null(($label = $this->getOptionsLabelAttribute()))) {
              throw new InvalidArgumentException(
                  sprintf(
                      'The %s element[%s] options must set label attribute',
                      $this->getType(),
                      $this->getName()
                  )
              );
          }
  
          $model = $this->getOptionsModel();
  
          /**
           * @var \Illuminate\Support\Collection $results
           */
          $results = $model->get();
  
          $key = $this->getOptionsValueAttribute() ?: $model->getKeyName();
  
          return $results->pluck($label, $key);
      }
code: protected function getOptionsFromModel()
      {
          if (is_null(($label = $this->getOptionsLabelAttribute()))) {
              throw new InvalidArgumentException(
                  sprintf(
                      'The %s element[%s] options must set label attribute',
                      $this->getType(),
                      $this->getName()
                  )
              );
          }
  
          $model = $this->getOptionsModel();
  
          /**
           * @var \Illuminate\Support\Collection $results
           */
          $results = $model->get();
  
          $key = $this->getOptionsValueAttribute() ?: $model->getKeyName();
  
          return $results->pluck($label, $key);
      }
code_tokens: protected function getOptionsFromModel ( ) { if ( is_null ( ( $ label = $ this -> getOptionsLabelAttribute ( ) ) ) ) { throw new InvalidArgumentException ( sprintf ( 'The %s element[%s] options must set label attribute' , $ this -> getType ( ) , $ this -> getName ( ) ) ) ; } $ model = $ this -> getOptionsModel ( ) ; /**
           * @var \Illuminate\Support\Collection $results
           */ $ results = $ model -> get ( ) ; $ key = $ this -> getOptionsValueAttribute ( ) ? : $ model -> getKeyName ( ) ; return $ results -> pluck ( $ label , $ key ) ; }
docstring: Get the options from model.
  
  @return \Illuminate\Support\Collection
docstring_tokens: Get the options from model .