Skip to content

Commit c3ee189

Browse files
committed
add arg
1 parent 12c9343 commit c3ee189

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mail.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ Of course, attachment data may be stored on a remote file storage service such a
523523

524524
In addition, you may create attachment instances via data that you have in memory. To accomplish this, provide a closure to the `fromData` method. The closure should return the raw data that represents the attachment:
525525

526-
return Attachment::fromData(fn () => $this->content);
526+
return Attachment::fromData(fn () => $this->content, 'Photo Name');
527527

528528
Laravel also provides additional methods that you may use to customize your attachments. For example, you may use the `as` and `withMime` methods to customize the file's name and MIME type:
529529

0 commit comments

Comments
 (0)