tl; dr: I am looking for something like "template_from_string" in Twig.
Long version (including use case):
I have a string like "Hello |NAME_OF_RECIPIENT| lorem ipsum ... more stuff.. more dynamic data..." and I am looking for a nice way to replace |NAME_OF_RECIPIENT| with dynamic data using Blade's feature set like directives and variables etc. I found Blade's compileString method which returns the compiled php script, nice, but I want the string with replacements (i.e. "Hello Peter").
Laravel version is 5.1.