SimpleMessage
class SimpleMessage (View source)
Properties
Methods
Indicate that the notification gives information about a successful operation.
Indicate that the notification gives information about an error.
Set the "level" of the notification (success, error, etc.).
Set the subject of the notification.
Set the greeting of the notification.
Set the salutation of the notification.
Add a line of text to the notification.
Add a line of text to the notification if the given condition is true.
Add lines of text to the notification.
Add lines of text to the notification if the given condition is true.
Add a line of text to the notification.
Configure the "call to action" button.
Set the name of the mailer that should send the notification.
Get an array representation of the message.
Details
$this
lineIf(bool $boolean, mixed $line)
Add a line of text to the notification if the given condition is true.
$this
linesIf(bool $boolean, iterable $lines)
Add lines of text to the notification if the given condition is true.
protected Htmlable|string
formatLine(Htmlable|string|array|null $line)
Format the given line of text.