Skip to content

Commit

Permalink
Merge pull request #4 from kirschbaum-development/laravel-7-swift-tra…
Browse files Browse the repository at this point in the history
…nsport

fixes TransportManager changes in Laravel 7
  • Loading branch information
brandonferens authored Apr 14, 2020
2 parents 2e90292 + 991c403 commit ddf32b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WithMailInterceptor.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ public function interceptMail()
public function interceptedMail(): Collection
{
$swiftTransport = (version_compare(app()->version(), '7.0.0', '<'))
? app('swift.transport')
? app('swift.transport')->driver()
: (app('mailer')->getSwiftMailer())->getTransport();

return $swiftTransport->driver()->messages();
return $swiftTransport->messages();
}
}

0 comments on commit ddf32b7

Please sign in to comment.