DEV Community

Osman Forhad
Osman Forhad

Posted on

Laravel artisan commands error : Failed to parse dotenv file due to an invalid name

every time I run php artisan commands I got this error
The environment file is invalid! Failed to parse dotenv file due to an invalid name.
.
to solve this i just replace the APP_NAME which is like below:
APP_NAME=MY Application
to
APP_NAME="MY Application"

and its solve my issues
.
Thank you
Happy Coding
.
osman forhad
Full-Stack Developerđź’» (Mobile App & Web App)
developer.osmanforhad@gmail.com

Top comments (0)