jeudi 31 décembre 2015

laravel 5.1 make rss feed

i make application with Laravel 5.1 only i need get some posts as Xml i mean rss feed i am USING LARAVEl 5.1 i found a lot of solutions But for Laravel 4 doesn't work for me

i tired this code but how can i path my data to view

return response('rss', 200,['Content-Type'=> "application/xml"]);

and this

return response($posts, 200,['Content-Type'=> "application/xml"]);

but this code return only json data

i need help thanks every one i am USING LARAVEl 5.1 :) and happy new year



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire