src/Concerns/HasAttributes.php
private function parseCastToValidator($type)
    {
        if (array_has(static::$cast_validation, $type)) {
            return array_get(static::$cast_validation, $type);
        }

        if (array_has(static::$default_cast_validation, $type)) {
            return array_get(static::$default_cast_validation, $type);
        }

        return $type;
    }
private function parseCastToValidator($type)
    {
        if (array_has(static::$cast_validation, $type)) {
            return array_get(static::$cast_validation, $type);
        }

        if (array_has(static::$default_cast_validation, $type)) {
            return array_get(static::$default_cast_validation, $type);
        }

        return $type;
    }
private function parseCastToValidator ( $ type ) { if ( array_has ( static :: $ cast_validation , $ type ) ) { return array_get ( static :: $ cast_validation , $ type ) ; } if ( array_has ( static :: $ default_cast_validation , $ type ) ) { return array_get ( static :: $ default_cast_validation , $ type ) ; } return $ type ; }
Convert attribute type to validation type.

@param string $type

@return string
Convert attribute type to validation type .