Skip to content

Commit

Permalink
disable saving attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
vagrant committed Jul 15, 2018
1 parent 6aa2944 commit 82eafb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EmailLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ public function handle(MessageSending $event)

$attachments = [];
foreach ($message->getChildren() as $child) {
$attachmentPath = config('email_log.folder') . '/' . $messageId . '/' . $child->getFilename();
Storage::put($attachmentPath, $child->getBody());
$attachments[] = $attachmentPath;
// $attachmentPath = config('email_log.folder') . '/' . $messageId . '/' . $child->getFilename();
// Storage::put($attachmentPath, $child->getBody());
// $attachments[] = $attachmentPath;
}

DB::table('email_log')->insert([
Expand Down

0 comments on commit 82eafb0

Please sign in to comment.