SimpleMessage
Properties
$level string
The "level" of the notification (info, success, error).
$subject string
The subject of the notification.
$greeting string
The notification's greeting.
$salutation string
The notification's salutation.
$introLines array
The "intro" lines of the notification.
$outroLines array
The "outro" lines of the notification.
$actionText string
The text / label for the action.
$actionUrl string
The action URL.
$mailer string
The name of the mailer that should send the notification.
Methods
success ( ) : $this
Indicate that the notification gives information about a successful operation.
error ( ) : $this
Indicate that the notification gives information about an error.
level ( $level ) : $this
Set the "level" of the notification (success, error, etc.).
Parameters
- $level string
subject ( $subject ) : $this
Set the subject of the notification.
Parameters
- $subject string
greeting ( $greeting ) : $this
Set the greeting of the notification.
Parameters
- $greeting string
salutation ( $salutation ) : $this
Set the salutation of the notification.
Parameters
- $salutation string
line ( $line ) : $this
Add a line of text to the notification.
Parameters
- $line mixed
lines ( $lines ) : $this
Add lines of text to the notification.
Parameters
- $lines iterable
with ( $line ) : $this
Add a line of text to the notification.
Parameters
- $line mixed
formatLine ( $line ) : Htmlable |string
Format the given line of text.
Parameters
- $line Htmlable |string|array
action ( $text , $url ) : $this
Configure the "call to action" button.
Parameters
- $text string
- $url string
mailer ( $mailer ) : $this
Set the name of the mailer that should send the notification.
Parameters
- $mailer string
toArray ( ) : array
Get an array representation of the message.