D
D
D44k2015-08-10 15:32:49
Laravel
D44k, 2015-08-10 15:32:49

Space at the beginning of Laravel xml output, where does it come from?

I connect Yandex.Checkout payment to the site on Laravel.
When checking the payment, you need to return the response in xml. I return as follows:

$contents = '<?xml version="1.0" encoding="UTF-8"?><checkOrderResponse performedDatetime="'.date('c').'" code="0" invoiceId="123" shopId="123"/>';
$response = Response::make($contents, 200);
$response->header('Content-Type', 'text/xml');
return $response;

An incomprehensible space appears at the beginning of the file. As a result, the answer is not accepted.
Please help me figure out where and at what stage it appears there.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vyacheslav Plisko, 2015-08-10
@AmdY

By chance this is not BOM?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question