-
-
Notifications
You must be signed in to change notification settings - Fork 651
Description
Hi π,
I ran into an issue while working on a Laravel project that might be confusing for beginners.
I changed my .env file like this:
APP_NAME = tinat app
Immediately after saving, my app crashed completely β no error message, blank page, and even php artisan stopped working.
Because I have some experience, I quickly realized the problem was that the value contained a space without quotes.
After changing it to:
APP_NAME=tinat-app
everything worked fine again.
However, for beginners, this kind of situation is really confusing. The app just crashes with no feedback, so they have no idea what went wrong or how to fix it.
π‘ Suggestion
It would be helpful if Laravel or vlucas/phpdotenv showed a clear, beginner-friendly error message when parsing .env files with unquoted values that contain spaces.
For example:
This would make the developer experience smoother and prevent unnecessary frustration for new users.