DEV Community

Osman Forhad
Osman Forhad

Posted on

2 1

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)

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay