1
0
Fork 0
mirror of https://github.com/archtechx/laravel-tips.git synced 2025-12-12 05:14:04 +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

575 B

title tweet_id thread_slug author_username images created_at slug
Uploaded files can be attached to emails directly from the request 1538579118551248896 weekly-thread-2022-24 ecrmnn
https://pbs.twimg.com/media/FVOf_L_UcAUYEaK.jpg
2022-06-19T17:47:01+00:00 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.