Template literals allow us to remove all that funky trickery we resorted to for creating elegant multi-line strings. Instead, simply replace those single quotes with backticks, and you're done. Even better, they also support variable substitutions. No more awkward concatenation!
Published on May 2nd, 2016.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.