We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 824f420 + f18c9c3 commit d54ca11Copy full SHA for d54ca11
1 file changed
src/pages/index.js
@@ -236,8 +236,8 @@ return response()->download('/path/to/file.pdf');
236
237
// Réponse personnalisée
238
return response('Contenu', 200)
239
- ->setHeader('Content-Type', 'text/plain')
240
- ->setCookie('name', 'value', 3600);`}
+ ->withHeader('Content-Type', 'text/plain')
+ ->withCookie('name', 'value', 3600);`}
241
</CodeBlock>
242
</TabItem>
243
</Tabs>
0 commit comments