I have tried adding \n
or \r\n
to the following code but it doesn't work.
Any ideas please?
'booking_notice' => 'Booking details below. Payment receipt was sent in a separate email.\r\nThank you for booking with us!',
That character should be in double-quotes for it to work as a line break:
'booking_notice' => 'Booking details below. Payment receipt was sent in a separate email.'."\r\n".'Thank you for booking with us!',
Alternatively you can use the constant PHP_EOL
but keep in mind the value that is used is platform dependent.
See this link for a list special characters that PHP interprets from double-quoted strings: https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.double
or other tag. – serverSentinel Mar 08 '21 at 21:50
`s – lagbox Mar 08 '21 at 21:58
to render a new line in HTML. – serverSentinel Mar 08 '21 at 21:59
".'Thank you for booking with us!',` keep in mind this is a php language file for a PHP Laravel 5.4 web base app. The email output is as follow: Booking details below. Payment receipt was sent in a separate email.
Thank you for booking with us! – JESSE Mar 08 '21 at 22:13