top-think / think

ThinkPHP Framework ——十年匠心的高性能PHP框架
http://www.thinkphp.cn
Other
7.83k stars 1.62k forks source link

2.0.* 版本报 think\facade\Env 找不到的错误 #966

Closed stone009 closed 5 years ago

stone009 commented 5 years ago

请官方修复一下,主要原因是以下两个文件引入的路径错误导致的。 以下文件中:

vendor/topthink/think-migration/src/command/Seed.php vendor/topthink/think-migration/src/command/Migrate.php

use think\facade\Env; 修改为 use think\Env; 即可。

TP版本:"5.0. think-migration 版本:2.0. 系统:win10

liu21st commented 5 years ago

5.0版本你要安装1.*版本 2.0版本是针对5.1框架的