Fatal error: Class 'Dotenv\Dotenv' not found in

前端 未结 7 692
悲哀的现实
悲哀的现实 2021-01-18 17:10

Hello guys I am so confused I dont know what I am doing wrong this told me Fatal error: Class \'Dotenv\\Dotenv\' not found in

But I dont understand

7条回答
  •  失恋的感觉
    2021-01-18 17:32

    check if you have "vlucas/phpdotenv" : "~2.2" in "require" tag in composer file. if you don't then add that plugin and open your terminal and run "composer dump-autoload" then run "composer update". and just to be safe run "composer dump-autoload" once again to refresh all the file paths.

    and, if you do have phpdotenv plugin then add that plugin in "require" then just run the dump-autoload command.

提交回复
热议问题