Property | Type | Description | |
---|---|---|---|
$attachImages | array | Array of attached images. | |
$data | array | The data that will be passed into the Illuminate View Factory. | |
$from | string | The number messages are being sent from. | |
$mms | boolean | Whether a message is a MMS or SMS. | |
$to | array | Array of numbers a message is being sent to. | |
$view | string | The view file to be used when composing a message. | |
$views | Illuminate\View\Factory | The Illuminate view factory. |
Method | Description | |
---|---|---|
__construct ( Illuminate\View\Factory $views ) | Create a OutgoingMessage Instance. | |
attachImage ( string $image ) | Attaches an image to a message. | |
composeMessage ( ) : Illuminate\View\Factory | Composes a message. | |
data ( array $data ) | Sets the data for the view file. | |
from ( string $number ) | Sets the numbers messages will be sent from. | |
getAttachImages ( ) : array | Returns the attached image. | |
getData ( ) : array | Returns the view data. | |
getFrom ( ) : string | Gets the from address. | |
getTo ( ) : array | Returns the To addresses without the carriers. | |
getToWithCarriers ( ) : array | Returns all numbers that a message is being sent to and includes their carriers. | |
getView ( ) : string | Returns the current view file.Returns. | |
isMMS ( ) : boolean | Returns if a message is a MMS.Returns. | |
to ( string $number, string $carrier = null ) | Sets the to addresses. | |
view ( string $view ) | Sets the view file to be loaded. |
public __construct ( Illuminate\View\Factory $views ) | ||
$views | Illuminate\View\Factory |
public attachImage ( string $image ) | ||
$image | string | Path to image. |
public composeMessage ( ) : Illuminate\View\Factory | ||
return | Illuminate\View\Factory |
public getAttachImages ( ) : array | ||
return | array |
public getToWithCarriers ( ) : array | ||
return | array | An array with numbers and carriers |
protected array $attachImages | ||
return | array |
protected array $data | ||
return | array |
protected string $from | ||
return | string |
protected array $to | ||
return | array |
protected string $view | ||
return | string |