Last active
October 13, 2021 15:03
-
-
Save murdercode/ce88c1eb4c390e00921d4e731d5f191c to your computer and use it in GitHub Desktop.
Return view as xml (rss)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
// Tested on Laravel 8.54 | |
use Illuminate\Support\Facades\Response; | |
return Response::view('rss', [ | |
'key' => 'value' | |
])->header('Content-Type', 'application/xml'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment