Laravel Response XML
Add the method "xml" integrating the laravel's response, converting eloquent return to XML.
Composer Installation
composer require jailtonsc/laravel-response-xml
Integration with Laravel 5.3.*
Add in config/app.php in place providers
XmlResponse\XmlResponseServiceProvider::class
Publish
php artisan vendor:publish
Example
Route::get('/', function () {
return response()->xml(User::all());
});
License
The Laravel Response XML is open-sourced software licensed under the MIT license