Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while setting string value #21

Open
bassigbc opened this issue Aug 6, 2020 · 5 comments
Open

Error while setting string value #21

bassigbc opened this issue Aug 6, 2020 · 5 comments

Comments

@bassigbc
Copy link

bassigbc commented Aug 6, 2020

This command:
php artisan env:set APP_NAME "MY.NAME & C."

set the env VAR with 4 double quotes:
APP_NAME=""MY.NAME & C.""

Refreshing configuration generate an error:

The environment file is invalid!
Failed to parse dotenv file due to unexpected whitespace. Failed at [""MY.NAME & C.""].
@carneiro
Copy link

carneiro commented Aug 7, 2020

Same issue here

@Stenfrank
Copy link

Works fine in version 1.1.1

@jacksleight
Copy link

Same issue here, downgrading to 1.1 fixes it for now.

@Stenfrank
Copy link

Same issue here, downgrading to 1.1 fixes it for now.

Look at this:

SankyuTech@c61d1fe

@msztorc
Copy link

msztorc commented Aug 21, 2021

You can also check my laravel-env package which supports special characters by default:
https://github.com/msztorc/laravel-env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants