jailtonsc/laravel-response-xml

Add the method xml integrating the laravel's response, converting eloquent return to XML.


Keywords
xml, response, laravel, eloquent
License
MIT

Documentation

Laravel Response XML

Add the method "xml" integrating the laravel's response, converting eloquent return to XML.

Total Downloads Latest Stable Version Latest Unstable Version

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