protected function getRouteResponse($route, $bindings, $headers = [])
{
$uri = $this->addRouteModelBindings($route, $bindings);
$methods = $route->getMethods();
// Split headers into key - value pairs
$headers = collect($headers)->map(function ($value) {
$split = explode(':', $value);
return [trim($split[0]) => trim($split[1])];
})->collapse()->toArray();
//Changes url with parameters like /users/{user} to /users/1
$uri = preg_replace('/{(.*)}/', 1, $uri);
return $this->callRoute(array_shift($methods), $uri, [], [], [], $headers);
}