public function optionsFromEnumColumn($model_name, $column_name, array $extra_options = [])
    {
        $options = [];
        foreach ($model_name::table()->enumValues($column_name) as $val) {
            $options[$this->humanize($val)] = $val;
        }
        
        if ($extra_options) {
            $options = array_merge($extra_options, $options);
        }
        
        return $options;
    }
public function optionsFromEnumColumn($model_name, $column_name, array $extra_options = [])
    {
        $options = [];
        foreach ($model_name::table()->enumValues($column_name) as $val) {
            $options[$this->humanize($val)] = $val;
        }
        
        if ($extra_options) {
            $options = array_merge($extra_options, $options);
        }
        
        return $options;
    }
public function optionsFromEnumColumn ( $ model_name , $ column_name , array $ extra_options = [ ] ) { $ options = [ ] ; foreach ( $ model_name :: table ( ) -> enumValues ( $ column_name ) as $ val ) { $ options [ $ this -> humanize ( $ val ) ] = $ val ; } if ( $ extra_options ) { $ options = array_merge ( $ extra_options , $ options ) ; } return $ options ; }
This method could go somewhere else.
This method could go somewhere else .