Create and Render Header

PHOTO EMBED

Fri Sep 24 2021 17:36:04 GMT+0000 (UTC)

Saved by @slendabilt #php #laravel

$response = $response->withHeader('x-joey-test', 'myvalue');

return $response->withStatus(404)->getBody()->write('not found');
return $response->getBody()->write('hello world');
content_copyCOPY