Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.5] Add to and bcc to mailer contract #19955

Merged
merged 1 commit into from
Jul 7, 2017
Merged

[5.5] Add to and bcc to mailer contract #19955

merged 1 commit into from
Jul 7, 2017

Conversation

fernandobandeira
Copy link
Contributor

Fixes #18361

#19928 was reverted since it broke MailFake.

However we can add bcc and to, MailFake implements them:
https://github.com/laravel/framework/blob/master/src/Illuminate/Support/Testing/Fakes/MailFake.php#L110

    /**
     * Begin the process of mailing a mailable class instance.
     *
     * @param  mixed  $users
     * @return \Illuminate\Mail\PendingMail
     */
    public function to($users)
    {
        return (new PendingMailFake($this))->to($users);
    }

    /**
     * Begin the process of mailing a mailable class instance.
     *
     * @param  mixed  $users
     * @return \Illuminate\Mail\PendingMail
     */
    public function bcc($users)
    {
        return (new PendingMailFake($this))->bcc($users);
    }

@taylorotwell taylorotwell merged commit 3f69b1e into laravel:master Jul 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants