Headers
class Headers (View source)
Traits
Conditionable |
Properties
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. |
Methods
$this|TWhenReturnType | when($value = null, callable $callback = null, callable $default = null)
Apply the callback if the given "value" is (or resolves to) truthy. | from Conditionable |
$this|TUnlessReturnType | unless($value = null, callable $callback = null, callable $default = null)
Apply the callback if the given "value" is (or resolves to) falsy. | from Conditionable |
void | __construct(string $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. |
Details
$this|TWhenReturnType when($value = null, callable $callback = null, callable $default = null)
Apply the callback if the given "value" is (or resolves to) truthy.
$this|TUnlessReturnType unless($value = null, callable $callback = null, callable $default = null)
Apply the callback if the given "value" is (or resolves to) falsy.
void __construct(string $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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Mail/Mailables/Headers.html