class Headers (View source)
| Conditionable |
| string|null | $messageId | The message's message ID. | |
| array | $references | The message IDs that are referenced by the message. | |
| array | $text | The message's text headers. |
| $this|TWhenReturnType | when($value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) truthy. | from Conditionable |
| $this|TUnlessReturnType | unless($value = null, callable|null $callback = null, callable|null $default = null)
Apply the callback if the given "value" is (or resolves to) falsy. | from Conditionable |
| void | __construct(string|null $messageId = null, array $references = [], array $text = [])
Create a new instance of headers for a message. | |
| $this | messageId(string $messageId)
Set the message ID. | |
| $this | references(array $references)
Set the message IDs referenced by this message. | |
| $this | text(array $text)
Set the headers for this message. | |
| string | referencesString()
Get the references header as a string. |
Apply the callback if the given "value" is (or resolves to) truthy.
Apply the callback if the given "value" is (or resolves to) falsy.
Create a new instance of headers for a message.
Set the message ID.
Set the message IDs referenced by this message.
Set the headers for this message.
Get the references header as a string.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Mail/Mailables/Headers.html