src/Http/Concerns/Transformable.php
protected function transformByMeta(string $meta, array $data, ...$parameters): array
    {
        $name = Str::singular($meta);
        $types = $this->options[$meta];

        if (empty($types)) {
            return $data;
        }

        foreach ($types as $type => $index) {
            if (is_array($type)) {
                continue;
            }

            $method = $name.Str::studly($type);

            if (method_exists($this, $method)) {
                $data = $this->{$method}($data, ...$parameters);
            }
        }

        return $data;
    }
protected function transformByMeta(string $meta, array $data, ...$parameters): array
    {
        $name = Str::singular($meta);
        $types = $this->options[$meta];

        if (empty($types)) {
            return $data;
        }

        foreach ($types as $type => $index) {
            if (is_array($type)) {
                continue;
            }

            $method = $name.Str::studly($type);

            if (method_exists($this, $method)) {
                $data = $this->{$method}($data, ...$parameters);
            }
        }

        return $data;
    }
protected function transformByMeta ( string $ meta , array $ data , ... $ parameters ) : array { $ name = Str :: singular ( $ meta ) ; $ types = $ this -> options [ $ meta ] ; if ( empty ( $ types ) ) { return $ data ; } foreach ( $ types as $ type => $ index ) { if ( is_array ( $ type ) ) { continue ; } $ method = $ name . Str :: studly ( $ type ) ; if ( method_exists ( $ this , $ method ) ) { $ data = $ this -> { $ method } ( $ data , ... $ parameters ) ; } } return $ data ; }
Resolve includes for transformer.

@param  string  $group
@param  array  $data
@param  mixed  $parameters

@return array
Resolve includes for transformer .