diff --git a/src/Illuminate/Contracts/Mail/Mailable.php b/src/Illuminate/Contracts/Mail/Mailable.php index 882b2167715b..cca451fb4663 100644 --- a/src/Illuminate/Contracts/Mail/Mailable.php +++ b/src/Illuminate/Contracts/Mail/Mailable.php @@ -30,4 +30,39 @@ public function queue(Queue $queue); * @return mixed */ public function later($delay, Queue $queue); + + /** + * Set the recipients of the message. + * + * @param object|array|string $address + * @param string|null $name + * @return self + */ + public function cc($address, $name = null); + + /** + * Set the recipients of the message. + * + * @param object|array|string $address + * @param string|null $name + * @return $this + */ + public function bcc($address, $name = null); + + /** + * Set the recipients of the message. + * + * @param object|array|string $address + * @param string|null $name + * @return $this + */ + public function to($address, $name = null); + + /** + * Set the locale of the message. + * + * @param string $locale + * @return $this + */ + public function locale($locale); } diff --git a/src/Illuminate/Mail/PendingMail.php b/src/Illuminate/Mail/PendingMail.php index 2f8e4bb839d7..8b9a796accfc 100644 --- a/src/Illuminate/Mail/PendingMail.php +++ b/src/Illuminate/Mail/PendingMail.php @@ -177,7 +177,7 @@ protected function fill(MailableContract $mailable) { return tap($mailable->to($this->to) ->cc($this->cc) - ->bcc($this->bcc), function ($mailable) { + ->bcc($this->bcc), function (MailableContract $mailable) { if ($this->locale) { $mailable->locale($this->locale); }