public function resolveRequestHandler(
        $resource,
        array $parameters = [],
        $version = null,
        $resolveDefaultRequestHandler = true
    )
    {
        try {
            return $this->resolve('requestHandler', $resource, $parameters, $version);
        } catch (ResourceNotDefinedException $e) {
            if ($resolveDefaultRequestHandler) {
                return $this->app->make(DefaultRequestHandler::class, $parameters);
            }
            throw $e;
        }
    }
public function resolveRequestHandler(
        $resource,
        array $parameters = [],
        $version = null,
        $resolveDefaultRequestHandler = true
    )
    {
        try {
            return $this->resolve('requestHandler', $resource, $parameters, $version);
        } catch (ResourceNotDefinedException $e) {
            if ($resolveDefaultRequestHandler) {
                return $this->app->make(DefaultRequestHandler::class, $parameters);
            }
            throw $e;
        }
    }
public function resolveRequestHandler ( $ resource , array $ parameters = [ ] , $ version = null , $ resolveDefaultRequestHandler = true ) { try { return $ this -> resolve ( 'requestHandler' , $ resource , $ parameters , $ version ) ; } catch ( ResourceNotDefinedException $ e ) { if ( $ resolveDefaultRequestHandler ) { return $ this -> app -> make ( DefaultRequestHandler :: class , $ parameters ) ; } throw $ e ; } }
resolves a controller

@param string $resource
@param array $parameters
@param null|string $version
@param bool $resolveDefaultRequestHandler
@return \Ipunkt\LaravelJsonApi\Contracts\RequestHandlers\ApiRequestHandler
resolves a controller