Framework: .env does not parse spaces in variables

Created on 29 Dec 2015  路  4Comments  路  Source: laravel/framework

my .env had a variable with spaces in between

VARIABLE_NAME=abc def ghi

With Laravel 5.1, it had a 1.0.* version and everything was working fine, but, when I upgraded to Laravel 5.2, it returns null for above variable.

Most helpful comment

VARIABLE_NAME="abc def ghi"

All 4 comments

VARIABLE_NAME="abc def ghi"

@crynobone :)

I know this is an old question... but what happend with the (+) sign... it seens scaping

And then if you use it in TWIG templates, then use something like variableName|trim('"')

Was this page helpful?
0 / 5 - 0 ratings