src/Concerns/HasAttributes.php
protected function getCastFromDefinition($type)
    {
        // Custom definitions.
        if (array_has(static::$cast_from, $type)) {
            return array_get(static::$cast_from, $type);
        }

        // Fallback to default.
        if (array_has(static::$default_cast_from, $type)) {
            return array_get(static::$default_cast_from, $type);
        }

        return false;
    }
protected function getCastFromDefinition($type)
    {
        // Custom definitions.
        if (array_has(static::$cast_from, $type)) {
            return array_get(static::$cast_from, $type);
        }

        // Fallback to default.
        if (array_has(static::$default_cast_from, $type)) {
            return array_get(static::$default_cast_from, $type);
        }

        return false;
    }
protected function getCastFromDefinition ( $ type ) { // Custom definitions. if ( array_has ( static :: $ cast_from , $ type ) ) { return array_get ( static :: $ cast_from , $ type ) ; } // Fallback to default. if ( array_has ( static :: $ default_cast_from , $ type ) ) { return array_get ( static :: $ default_cast_from , $ type ) ; } return false ; }
Get the method to cast this attribte type.

@param string $type

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