We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b3bf0b commit 39d029dCopy full SHA for 39d029d
src/Illuminate/Mail/Mailable.php
@@ -328,6 +328,18 @@ public function from($address, $name = null)
328
return $this->setAddress($address, $name, 'from');
329
}
330
331
+ /**
332
+ * Determine if the given recipient is set on the mailable.
333
+ *
334
+ * @param object|array|string $address
335
+ * @param string|null $name
336
+ * @return bool
337
+ */
338
+ public function hasFrom($address, $name = null)
339
+ {
340
+ return $this->hasRecipient($address, $name, 'from');
341
+ }
342
+
343
/**
344
* Set the recipients of the message.
345
*
0 commit comments