9Cells

Blade로 XML 출력하기

Code

$contents = view("c9::pages.sitemap", ['logs' => $logs])->render();
$response = Response::make($contents);
$response->header('Content-Type', 'application/xml');

return $response;