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/uploaded-files-can-be-attached-to-emails-directly-from-the-request.md
Samuel Štancl a955c3968b Week 24/2022
2022-06-19 21:46:45 +02:00

15 lines
No EOL
575 B
Markdown

---
title: 'Uploaded files can be attached to emails directly from the request'
tweet_id: '1538579118551248896'
thread_slug: weekly-thread-2022-24
author_username: ecrmnn
images:
- 'https://pbs.twimg.com/media/FVOf_L_UcAUYEaK.jpg'
created_at: 2022-06-19T17:47:01+00:00
slug: uploaded-files-can-be-attached-to-emails-directly-from-the-request
---
Sending emails with user uploaded files in Laravel?
Did you know you don't have to save the file first — you can simply attach the uploaded file with `attachData` 💌 📸
Here's a snippet from a Mailable class using it.