}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// If this content implements the "Renderable" interface then we will call the
// render method on the object so we will avoid any "__toString" exceptions
// that might be thrown and have their errors obscured by PHP's handling.
elseif ($content instanceof Renderable) {
$content = $content->render();
}
parent::setContent($content);
return $this;
$response instanceof ArrayObject ||
$response instanceof JsonSerializable ||
is_array($response))) {
$response = new JsonResponse($response);
} elseif (! $response instanceof SymfonyResponse) {
$response = new Response($response, 200, ['Content-Type' => 'text/html']);
}
if ($response->getStatusCode() === Response::HTTP_NOT_MODIFIED) {
$response->setNotModified();
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
*/
public function handle($request, Closure $next)
{
// Check if we're dealing with CORS and if we should handle it
if (! $this->shouldRun($request)) {
return $next($request);
}
// For Preflight, return the Preflight response
if ($this->cors->isPreflightRequest($request)) {
$response = $this->cors->handlePreflightRequest($request);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
public function handle(Request $request, Closure $next)
{
$request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests
$this->setTrustedProxyIpAddresses($request);
return $next($request);
}
/**
* Sets the trusted proxies on the request to the value of trustedproxy.proxies
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// If this content implements the "Renderable" interface then we will call the
// render method on the object so we will avoid any "__toString" exceptions
// that might be thrown and have their errors obscured by PHP's handling.
elseif ($content instanceof Renderable) {
$content = $content->render();
}
parent::setContent($content);
return $this;
$response instanceof ArrayObject ||
$response instanceof JsonSerializable ||
is_array($response))) {
$response = new JsonResponse($response);
} elseif (! $response instanceof SymfonyResponse) {
$response = new Response($response, 200, ['Content-Type' => 'text/html']);
}
if ($response->getStatusCode() === Response::HTTP_NOT_MODIFIED) {
$response->setNotModified();
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
*/
public function handle($request, Closure $next)
{
// Check if we're dealing with CORS and if we should handle it
if (! $this->shouldRun($request)) {
return $next($request);
}
// For Preflight, return the Preflight response
if ($this->cors->isPreflightRequest($request)) {
$response = $this->cors->handlePreflightRequest($request);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
public function handle(Request $request, Closure $next)
{
$request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests
$this->setTrustedProxyIpAddresses($request);
return $next($request);
}
/**
* Sets the trusted proxies on the request to the value of trustedproxy.proxies
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// We'll evaluate the contents of the view inside a try/catch block so we can
// flush out any stray output that might get out before an error occurs or
// an exception is thrown. This prevents any partial views from leaking.
try {
include $__path;
} catch (Throwable $e) {
$this->handleViewException($e, $obLevel);
}
return ltrim(ob_get_clean());
}
// Once we have the path to the compiled file, we will evaluate the paths with
// typical PHP just like any other templates. We also keep a stack of views
// which have been rendered for right exception messages to be generated.
$results = $this->evaluatePath($this->compiler->getCompiledPath($path), $data);
array_pop($this->lastCompiled);
return $results;
}
// clear out the sections for any separate views that may be rendered.
$this->factory->incrementRender();
$this->factory->callComposer($this);
$contents = $this->getContents();
// Once we've finished rendering the view, we'll decrement the render count
// so that each sections get flushed out next time a view is created and
// no old sections are staying around in the memory of an environment.
$this->factory->decrementRender();
* @throws \Throwable
*/
public function render(callable $callback = null)
{
try {
$contents = $this->renderContents();
$response = isset($callback) ? $callback($this, $contents) : null;
// Once we have the contents of the view, we will flush the sections if we are
// done rendering all views so that there is nothing left hanging over when
// If this content implements the "Renderable" interface then we will call the
// render method on the object so we will avoid any "__toString" exceptions
// that might be thrown and have their errors obscured by PHP's handling.
elseif ($content instanceof Renderable) {
$content = $content->render();
}
parent::setContent($content);
return $this;
$response instanceof ArrayObject ||
$response instanceof JsonSerializable ||
is_array($response))) {
$response = new JsonResponse($response);
} elseif (! $response instanceof SymfonyResponse) {
$response = new Response($response, 200, ['Content-Type' => 'text/html']);
}
if ($response->getStatusCode() === Response::HTTP_NOT_MODIFIED) {
$response->setNotModified();
}
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
*/
public function handle($request, Closure $next)
{
// Check if we're dealing with CORS and if we should handle it
if (! $this->shouldRun($request)) {
return $next($request);
}
// For Preflight, return the Preflight response
if ($this->cors->isPreflightRequest($request)) {
$response = $this->cors->handlePreflightRequest($request);
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
public function handle(Request $request, Closure $next)
{
$request::setTrustedProxies([], $this->getTrustedHeaderNames()); // Reset trusted proxies between requests
$this->setTrustedProxyIpAddresses($request);
return $next($request);
}
/**
* Sets the trusted proxies on the request to the value of trustedproxy.proxies
*
// since the object we're given was already a fully instantiated object.
$parameters = [$passable, $stack];
}
$carry = method_exists($pipe, $this->method)
? $pipe->{$this->method}(...$parameters)
: $pipe(...$parameters);
return $this->handleCarry($carry);
} catch (Throwable $e) {
return $this->handleException($passable, $e);
[3/3] ErrorException |
---|
ErrorException: Cannot modify header information - headers already sent by (output started at /var/www/html/storage/framework/views/cf1229b87becdb2233f3d6a549ae8e478aabb6ad.php:628) (View: /var/www/html/resources/views/layouts/index.blade.php) (View: /var/www/html/resources/views/layouts/index.blade.php) at /var/www/html/storage/framework/views/ca4012bb66a5171367c4439470093718db94bf2b.php:1 at Illuminate\View\Engines\CompilerEngine->handleViewException(object(ErrorException), 1) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:43) at Illuminate\View\Engines\PhpEngine->evaluatePath('/var/www/html/storage/framework/views/cf1229b87becdb2233f3d6a549ae8e478aabb6ad.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'community' => object(FocusCommunity), 'propertiesForSale' => object(LengthAwarePaginator), 'propertiesForRent' => object(LengthAwarePaginator), 'locationAgents' => object(Collection), 'pagecontents' => object(Page))) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:57) at Illuminate\View\Engines\CompilerEngine->get('/var/www/html/resources/views/communities/details.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'community' => object(FocusCommunity), 'propertiesForSale' => object(LengthAwarePaginator), 'propertiesForRent' => object(LengthAwarePaginator), 'locationAgents' => object(Collection), 'pagecontents' => object(Page))) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:139) at Illuminate\View\View->getContents() (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:122) at Illuminate\View\View->renderContents() (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:91) at Illuminate\View\View->render() (/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php:62) at Illuminate\Http\Response->setContent(object(View)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php:34) at Illuminate\Http\Response->__construct(object(View), 200, array('Content-Type' => 'text/html')) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:759) at Illuminate\Routing\Router::toResponse(object(Request), object(View)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:731) at Illuminate\Routing\Router->prepareResponse(object(Request), object(View)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:685) at Illuminate\Routing\Router->Illuminate\Routing\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/app/Http/Middleware/BlockIpMiddleware.php:133) at App\Http\Middleware\BlockIpMiddleware->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41) at Illuminate\Routing\Middleware\SubstituteBindings->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:78) at Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49) at Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:116) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:62) at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27) at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/fruitcake/laravel-cors/src/HandleCors.php:37) at Fruitcake\Cors\HandleCors->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/fideloper/proxy/src/TrustProxies.php:57) at Fideloper\Proxy\TrustProxies->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/var/www/html/public/index.php:55) |
[2/3] ErrorException |
---|
ErrorException: Cannot modify header information - headers already sent by (output started at /var/www/html/storage/framework/views/cf1229b87becdb2233f3d6a549ae8e478aabb6ad.php:628) (View: /var/www/html/resources/views/layouts/index.blade.php) at /var/www/html/storage/framework/views/ca4012bb66a5171367c4439470093718db94bf2b.php:1 at Illuminate\View\Engines\CompilerEngine->handleViewException(object(ErrorException), 1) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:43) at Illuminate\View\Engines\PhpEngine->evaluatePath('/var/www/html/storage/framework/views/ca4012bb66a5171367c4439470093718db94bf2b.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'obLevel' => 1, 'community' => object(FocusCommunity), 'propertiesForSale' => object(LengthAwarePaginator), 'propertiesForRent' => object(LengthAwarePaginator), 'locationAgents' => object(Collection), 'pagecontents' => object(Page), 'pagetitle' => 'Downtown Dubai Community Guide', 'ipaddress' => '3.80.173.25', 'term_keywords' => '')) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:57) at Illuminate\View\Engines\CompilerEngine->get('/var/www/html/resources/views/layouts/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'obLevel' => 1, 'community' => object(FocusCommunity), 'propertiesForSale' => object(LengthAwarePaginator), 'propertiesForRent' => object(LengthAwarePaginator), 'locationAgents' => object(Collection), 'pagecontents' => object(Page), 'pagetitle' => 'Downtown Dubai Community Guide', 'ipaddress' => '3.80.173.25', 'term_keywords' => '')) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:139) at Illuminate\View\View->getContents() (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:122) at Illuminate\View\View->renderContents() (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:91) at Illuminate\View\View->render() (/var/www/html/storage/framework/views/cf1229b87becdb2233f3d6a549ae8e478aabb6ad.php:730) at include('/var/www/html/storage/framework/views/cf1229b87becdb2233f3d6a549ae8e478aabb6ad.php') (/var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:41) at Illuminate\View\Engines\PhpEngine->evaluatePath('/var/www/html/storage/framework/views/cf1229b87becdb2233f3d6a549ae8e478aabb6ad.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'community' => object(FocusCommunity), 'propertiesForSale' => object(LengthAwarePaginator), 'propertiesForRent' => object(LengthAwarePaginator), 'locationAgents' => object(Collection), 'pagecontents' => object(Page))) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:57) at Illuminate\View\Engines\CompilerEngine->get('/var/www/html/resources/views/communities/details.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'community' => object(FocusCommunity), 'propertiesForSale' => object(LengthAwarePaginator), 'propertiesForRent' => object(LengthAwarePaginator), 'locationAgents' => object(Collection), 'pagecontents' => object(Page))) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:139) at Illuminate\View\View->getContents() (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:122) at Illuminate\View\View->renderContents() (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:91) at Illuminate\View\View->render() (/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php:62) at Illuminate\Http\Response->setContent(object(View)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php:34) at Illuminate\Http\Response->__construct(object(View), 200, array('Content-Type' => 'text/html')) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:759) at Illuminate\Routing\Router::toResponse(object(Request), object(View)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:731) at Illuminate\Routing\Router->prepareResponse(object(Request), object(View)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:685) at Illuminate\Routing\Router->Illuminate\Routing\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/app/Http/Middleware/BlockIpMiddleware.php:133) at App\Http\Middleware\BlockIpMiddleware->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41) at Illuminate\Routing\Middleware\SubstituteBindings->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:78) at Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49) at Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:116) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:62) at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27) at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/fruitcake/laravel-cors/src/HandleCors.php:37) at Fruitcake\Cors\HandleCors->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/fideloper/proxy/src/TrustProxies.php:57) at Fideloper\Proxy\TrustProxies->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/var/www/html/public/index.php:55) |
[1/3] ErrorException |
---|
ErrorException: Cannot modify header information - headers already sent by (output started at /var/www/html/storage/framework/views/cf1229b87becdb2233f3d6a549ae8e478aabb6ad.php:628) at /var/www/html/storage/framework/views/ca4012bb66a5171367c4439470093718db94bf2b.php:1 at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'Cannot modify header information - headers already sent by (output started at /var/www/html/storage/framework/views/cf1229b87becdb2233f3d6a549ae8e478aabb6ad.php:628)', '/var/www/html/storage/framework/views/ca4012bb66a5171367c4439470093718db94bf2b.php', 1, array('__path' => '/var/www/html/storage/framework/views/ca4012bb66a5171367c4439470093718db94bf2b.php', '__data' => array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'obLevel' => 1, 'community' => object(FocusCommunity), 'propertiesForSale' => object(LengthAwarePaginator), 'propertiesForRent' => object(LengthAwarePaginator), 'locationAgents' => object(Collection), 'pagecontents' => object(Page), 'pagetitle' => 'Downtown Dubai Community Guide', 'ipaddress' => '3.80.173.25', 'term_keywords' => ''), 'obLevel' => 1, '__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'community' => object(FocusCommunity), 'propertiesForSale' => object(LengthAwarePaginator), 'propertiesForRent' => object(LengthAwarePaginator), 'locationAgents' => object(Collection), 'pagecontents' => object(Page), 'pagetitle' => 'Downtown Dubai Community Guide', 'ipaddress' => '3.80.173.25', 'term_keywords' => '')) at header('Access-Control-Allow-Origin: *') (/var/www/html/storage/framework/views/ca4012bb66a5171367c4439470093718db94bf2b.php:1) at include('/var/www/html/storage/framework/views/ca4012bb66a5171367c4439470093718db94bf2b.php') (/var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:41) at Illuminate\View\Engines\PhpEngine->evaluatePath('/var/www/html/storage/framework/views/ca4012bb66a5171367c4439470093718db94bf2b.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'obLevel' => 1, 'community' => object(FocusCommunity), 'propertiesForSale' => object(LengthAwarePaginator), 'propertiesForRent' => object(LengthAwarePaginator), 'locationAgents' => object(Collection), 'pagecontents' => object(Page), 'pagetitle' => 'Downtown Dubai Community Guide', 'ipaddress' => '3.80.173.25', 'term_keywords' => '')) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:57) at Illuminate\View\Engines\CompilerEngine->get('/var/www/html/resources/views/layouts/index.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'obLevel' => 1, 'community' => object(FocusCommunity), 'propertiesForSale' => object(LengthAwarePaginator), 'propertiesForRent' => object(LengthAwarePaginator), 'locationAgents' => object(Collection), 'pagecontents' => object(Page), 'pagetitle' => 'Downtown Dubai Community Guide', 'ipaddress' => '3.80.173.25', 'term_keywords' => '')) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:139) at Illuminate\View\View->getContents() (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:122) at Illuminate\View\View->renderContents() (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:91) at Illuminate\View\View->render() (/var/www/html/storage/framework/views/cf1229b87becdb2233f3d6a549ae8e478aabb6ad.php:730) at include('/var/www/html/storage/framework/views/cf1229b87becdb2233f3d6a549ae8e478aabb6ad.php') (/var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:41) at Illuminate\View\Engines\PhpEngine->evaluatePath('/var/www/html/storage/framework/views/cf1229b87becdb2233f3d6a549ae8e478aabb6ad.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'community' => object(FocusCommunity), 'propertiesForSale' => object(LengthAwarePaginator), 'propertiesForRent' => object(LengthAwarePaginator), 'locationAgents' => object(Collection), 'pagecontents' => object(Page))) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:57) at Illuminate\View\Engines\CompilerEngine->get('/var/www/html/resources/views/communities/details.blade.php', array('__env' => object(Factory), 'app' => object(Application), 'errors' => object(ViewErrorBag), 'community' => object(FocusCommunity), 'propertiesForSale' => object(LengthAwarePaginator), 'propertiesForRent' => object(LengthAwarePaginator), 'locationAgents' => object(Collection), 'pagecontents' => object(Page))) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:139) at Illuminate\View\View->getContents() (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:122) at Illuminate\View\View->renderContents() (/var/www/html/vendor/laravel/framework/src/Illuminate/View/View.php:91) at Illuminate\View\View->render() (/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php:62) at Illuminate\Http\Response->setContent(object(View)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Http/Response.php:34) at Illuminate\Http\Response->__construct(object(View), 200, array('Content-Type' => 'text/html')) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:759) at Illuminate\Routing\Router::toResponse(object(Request), object(View)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:731) at Illuminate\Routing\Router->prepareResponse(object(Request), object(View)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:685) at Illuminate\Routing\Router->Illuminate\Routing\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/app/Http/Middleware/BlockIpMiddleware.php:133) at App\Http\Middleware\BlockIpMiddleware->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php:41) at Illuminate\Routing\Middleware\SubstituteBindings->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php:78) at Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php:49) at Illuminate\View\Middleware\ShareErrorsFromSession->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:116) at Illuminate\Session\Middleware\StartSession->handleStatefulRequest(object(Request), object(Store), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php:62) at Illuminate\Session\Middleware\StartSession->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php:37) at Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php:67) at Illuminate\Cookie\Middleware\EncryptCookies->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:687) at Illuminate\Routing\Router->runRouteWithinStack(object(Route), object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:662) at Illuminate\Routing\Router->runRoute(object(Request), object(Route)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:628) at Illuminate\Routing\Router->dispatchToRoute(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Routing/Router.php:617) at Illuminate\Routing\Router->dispatch(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:165) at Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:128) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/renatomarinho/laravel-page-speed/src/Middleware/PageSpeed.php:30) at RenatoMarinho\LaravelPageSpeed\Middleware\PageSpeed->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php:21) at Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php:27) at Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php:63) at Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/fruitcake/laravel-cors/src/HandleCors.php:37) at Fruitcake\Cors\HandleCors->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/fideloper/proxy/src/TrustProxies.php:57) at Fideloper\Proxy\TrustProxies->handle(object(Request), object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:167) at Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php:103) at Illuminate\Pipeline\Pipeline->then(object(Closure)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:140) at Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(object(Request)) (/var/www/html/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php:109) at Illuminate\Foundation\Http\Kernel->handle(object(Request)) (/var/www/html/public/index.php:55) |