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

Posted by

Error:

> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover
The environment file is invalid!
Failed to parse dotenv file. Encountered an invalid name at [GET-ALL-QUOTE-BY-FIRM].
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1

Solution:

go to the .env file and delete the .env file

delete theĀ .envĀ file and recreate another with the same content.

After that error is solved

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x