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

Leave a Reply

Your email address will not be published. Required fields are marked *

0
Would love your thoughts, please comment.x
()
x