src/Routing/VersionedHelpers.php
protected function processWith($instance, string $name, string $method, ...$parameters)
    {
        $processor = $this->getVersionedResourceClassName('Processors', $name);

        return \app($processor)->{$method}($this, $instance, ...$parameters);
    }
protected function processWith($instance, string $name, string $method, ...$parameters)
    {
        $processor = $this->getVersionedResourceClassName('Processors', $name);

        return \app($processor)->{$method}($this, $instance, ...$parameters);
    }
protected function processWith ( $ instance , string $ name , string $ method , ... $ parameters ) { $ processor = $ this -> getVersionedResourceClassName ( 'Processors' , $ name ) ; return \ app ( $ processor ) -> { $ method } ( $ this , $ instance , ... $ parameters ) ; }
Process the instance.

@param  \Orchestra\Model\Eloquent|\Illuminate\Support\Collection  $instance
@param  string  $name
@param  string  $method
@param  mixed  $parameters

@return mixed
Process the instance .