Say I have a route:
Route::get('list',...);
If I call that route with Accept: text/html
it should return a view with all the blade hoopla. If I call that route with Accept: application/json
it should return json, Accept: application/xml
it will return xml. And so on...
How do I realise that with Laravel 5.1?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire