On this page
TextMessage
class TextMessage mixin Message (View source)
Traits
Properties
protected Message | $message | The underlying message instance. |
Methods
mixed | forwardCallTo(mixed $object, string $method, array $parameters) Forward a method call to the given object. |
from ForwardsCalls |
mixed | forwardDecoratedCallTo(mixed $object, string $method, array $parameters) Forward a method call to the given object, returning $this if the forwarded call returned itself. |
from ForwardsCalls |
static void | throwBadMethodCallException(string $method) Throw a bad method call exception for the given method. |
from ForwardsCalls |
void | __construct(Message $message) Create a new text message instance. |
|
string | embed(string|Attachable|Attachment $file) Embed a file in the message and get the CID. |
|
string | embedData(string|resource $data, string $name, string|null $contentType = null) Embed in-memory data in the message and get the CID. |
|
mixed | __call(string $method, array $parameters) Dynamically pass missing methods to the underlying message instance. |
Details
protected mixed forwardCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object.
protected mixed forwardDecoratedCallTo(mixed $object, string $method, array $parameters)
Forward a method call to the given object, returning $this if the forwarded call returned itself.
static protected void throwBadMethodCallException(string $method)
Throw a bad method call exception for the given method.
void __construct(Message $message)
Create a new text message instance.
string embed(string|Attachable|Attachment $file)
Embed a file in the message and get the CID.
string embedData(string|resource $data, string $name, string|null $contentType = null)
Embed in-memory data in the message and get the CID.
mixed __call(string $method, array $parameters)
Dynamically pass missing methods to the underlying message instance.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Mail/TextMessage.html