1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 21:34:03 +00:00
laravel-tips/content/tips/use-the-stream-method-to-send-a-file-to-the-browser-without-triggering-a-download.md
2022-03-06 19:20:10 +01:00

544 B

title tweet_id thread_slug author_username images created_at slug
Use the stream() method to send a file to the browser without triggering a download 1499806901390827523 weekly-thread-2022-09 avosalmon
https://pbs.twimg.com/media/FMwQ4iQaUAIpajf.jpg
2022-03-04T18:00:05+00:00 use-the-stream-method-to-send-a-file-to-the-browser-without-triggering-a-download

#Laravel Tip 🔥 If you want to return a file content without initiating a download, you can use the stream() method. It will display the file in the browser.