src/Concerns/HasAttributes.php
protected function getCastAsParamaters($key)
    {
        $cast_params = $this->getCastParams();

        $paramaters = explode(':', array_get($cast_params, $key, ''));
        $parsed = $this->parseCastParamaters($paramaters);

        return $parsed;
    }
protected function getCastAsParamaters($key)
    {
        $cast_params = $this->getCastParams();

        $paramaters = explode(':', array_get($cast_params, $key, ''));
        $parsed = $this->parseCastParamaters($paramaters);

        return $parsed;
    }
protected function getCastAsParamaters ( $ key ) { $ cast_params = $ this -> getCastParams ( ) ; $ paramaters = explode ( ':' , array_get ( $ cast_params , $ key , '' ) ) ; $ parsed = $ this -> parseCastParamaters ( $ paramaters ) ; return $ parsed ; }
Get the method to cast this attribte tyepca.

@param string $type

@return string|array|bool
Get the method to cast this attribte tyepca .