Add Custom Headers to HTTP Responses in Laravel

preview_player
Показать описание
Learn how to add custom headers to HTTP responses in a Laravel application.

================
Connect with me:
================

⏲️ Timestamps ⏲️
00:00 - Intro
00:44 - Create a Middleware
02:20 - Globally apply the Middleware
03:35 - Apply Middleware on specific Routes
05:10 - Conclusion

================
#laravel #http #api
Рекомендации по теме
Комментарии
Автор


⏲ Timestamps ⏲
00:00 - Intro
00:44 - Create a Middleware
02:20 - Globally apply the Middleware
03:35 - Apply Middleware on specific Routes
05:10 - Conclusion

NeutronDev
Автор

how can I override the "Connection" header? I created a middleware but the "Connection" header is always as keep-alive, despite me putting it to "Close"

Reinaldulin
Автор

I dont get it, i always get the following error:
"Call to undefined method

antoniovedivici
Автор

hi there i need to download a pdf generated with barryvdh which generates fine but sending the output with laravel 8 is just now working
it send the response with content-type text/html
instead of content-type application/pdf

elmalleable