Last active
October 13, 2021 15:03
Return view as xml (rss)
This file contains hidden or 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