You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the function below
`public function singleRequest($method, $uri, array $data = [], array $headers = [], $content = null)
{
// Save the current request so we can reset the router back to it
// after we've completed our internal request.
$currentRequest = $this->request->instance()->duplicate();
dd($currentRequest->content, $currentRequest->getContent());
$headers = $this->overrideHeaders($currentRequest->server->getHeaders(), $headers);
if ($this->disableMiddleware) {
$this->app->instance('middleware.disable', true);
}
$response = $this->request($method, $uri, $data, $headers, $content);
if ($this->disableMiddleware) {
$this->app->instance('middleware.disable', false);
}
// Once the request has completed we reset the currentRequest of the router
// to match the original request.
$this->request->instance()->initialize(
$currentRequest->query->all(),
$currentRequest->request->all(),
$currentRequest->attributes->all(),
$currentRequest->cookies->all(),
$currentRequest->files->all(),
$currentRequest->server->all(),
$currentRequest->content
);
return $response;
}`
We may need to change
$currentRequest->content
to $currentRequest->getContent()
The text was updated successfully, but these errors were encountered:
In the function below
`public function singleRequest($method, $uri, array $data = [], array $headers = [], $content = null)
{
// Save the current request so we can reset the router back to it
// after we've completed our internal request.
$currentRequest = $this->request->instance()->duplicate();
We may need to change
$currentRequest->content
to
$currentRequest->getContent()
The text was updated successfully, but these errors were encountered: