addAnAddress() protected method

Addresses that have been added already return false, but do not throw exceptions.
protected addAnAddress ( string $kind, string $address, string $name = '' ) : boolean
$kind string One of 'to', 'cc', 'bcc', or 'ReplyTo'
$address string The email address to send, resp. to reply to
$name string
return boolean true on success, false if address already used or invalid in some way
Example #1
0
 public function addAddress($address, $name = '')
 {
     if (config('mail.debug') === true) {
         $address = config('app.email');
     }
     return parent::addAnAddress('to', $address, $name);
 }