This thread is old as all hell but I need to do the same thing here. The solution is to embed \n in the string in your .env file and then str_replace('\\n', "\n", config('your_multiline_item')); when you retrieve it. Ideally you use something like a service provider to do this for you and you store the transformed version in the app container directly.
With apologies for raising this dead thread, but I had to embed \\n and not just \n in the string in my .env file. Otherwise it interpreted the \n as an actual newline character, even if I put it all in single quotes.
Ran into the same issue this morning, kind of odd that there isn't a better solution. As the previous commentators posted, the solution here is to replace
\n with \n and then in your .env file, quote the string, and use str_replace to transform \n back to \n when you use it.
I created an open-source package to solve this today because I've been running into this issue a few times now: https://github.com/TixelRocks/long-env. Just replace env() with long_env() for any multi-line long environment variables that you have and everything will be taken care of automatically