Skip to content

Commit cc718d0

Browse files
authored
Document pitfall with Mail::fake()
1 parent 9b1a287 commit cc718d0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

services/mail.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -480,3 +480,6 @@ Mail::assertSent('this.is.my.email', function ($mail) {
480480
return $mail->hasTo('test@example.com');
481481
});
482482
```
483+
484+
>**NOTE:** Laravel does not support rendering the mail when using the fake mailer so it is necessary to test the contents of the sent email in another way. See https://github.com/laravel/framework/issues/24005.
485+

0 commit comments

Comments
 (0)