jailtonsc / laravel-response-xml

Add the method xml integrating the laravel's response, converting eloquent return to XML.
46 stars 15 forks source link

xml version and encoding #14

Closed ellgibug closed 6 years ago

ellgibug commented 6 years ago

Hello!

Thanks for your package. I need to display <?xml version="1.0" encoding="UTF-8"?> before the response. I've tried to change 'template' => '<?xml version="1.0" encoding="UTF-8"?><response></response>', in the config file after publishing, but nothing happens.

Is there any way to echo in on the page? Thanks for help)

jailtonsc commented 6 years ago

Not at the moment, but I'm going to get on the project this week to make a correction and take advantage of it and insert this option

ellgibug commented 6 years ago

@jailtonsc thank you ;)

jailtonsc commented 6 years ago

Hello, I made the adjustments. I put a new attribute in the configuration file that tells the encoding

ellgibug commented 6 years ago

@jailtonsc Wow, thank you very much!!!