original_string: public static function selectOptions(\Closure $closure = null, $rootText = 'Root')
      {
          $options = (new static())->withQuery($closure)->buildSelectOptions();
  
          return collect($options)->prepend($rootText, 0)->all();
      }
code: public static function selectOptions(\Closure $closure = null, $rootText = 'Root')
      {
          $options = (new static())->withQuery($closure)->buildSelectOptions();
  
          return collect($options)->prepend($rootText, 0)->all();
      }
code_tokens: public static function selectOptions ( \ Closure $ closure = null , $ rootText = 'Root' ) { $ options = ( new static ( ) ) -> withQuery ( $ closure ) -> buildSelectOptions ( ) ; return collect ( $ options ) -> prepend ( $ rootText , 0 ) -> all ( ) ; }
docstring: Get options for Select field in form.
  
  @param \Closure|null $closure
  @param string        $rootText
  
  @return array
docstring_tokens: Get options for Select field in form .