protected function getAllowedTypeString($modelKey)
    {
        switch ($modelKey) {
            case 'addressable':
                return implode(",", array_keys(config('combine-core.validation.polymorphicTypes.addressable')));
            case 'author':
                return implode(",", array_keys(config('combine-core.validation.authorTypes')));
            case 'noteable':
                return implode(",", array_keys(config('combine-core.validation.polymorphicTypes.noteable')));
            case 'phoneable':
                return implode(",", array_keys(config('combine-core.validation.polymorphicTypes.phoneable')));
        };
        return null;
    }
protected function getAllowedTypeString($modelKey)
    {
        switch ($modelKey) {
            case 'addressable':
                return implode(",", array_keys(config('combine-core.validation.polymorphicTypes.addressable')));
            case 'author':
                return implode(",", array_keys(config('combine-core.validation.authorTypes')));
            case 'noteable':
                return implode(",", array_keys(config('combine-core.validation.polymorphicTypes.noteable')));
            case 'phoneable':
                return implode(",", array_keys(config('combine-core.validation.polymorphicTypes.phoneable')));
        };
        return null;
    }
protected function getAllowedTypeString ( $ modelKey ) { switch ( $ modelKey ) { case 'addressable' : return implode ( "," , array_keys ( config ( 'combine-core.validation.polymorphicTypes.addressable' ) ) ) ; case 'author' : return implode ( "," , array_keys ( config ( 'combine-core.validation.authorTypes' ) ) ) ; case 'noteable' : return implode ( "," , array_keys ( config ( 'combine-core.validation.polymorphicTypes.noteable' ) ) ) ; case 'phoneable' : return implode ( "," , array_keys ( config ( 'combine-core.validation.polymorphicTypes.phoneable' ) ) ) ; } ; return null ; }
Provides a comma-delimited string list of valid Model classnames for attachable_type fields. For use in validation rules.
@return null | string
Provides a comma - delimited string list of valid Model classnames for attachable_type fields . For use in validation rules .