F:\code\php\demo\tp5.1 (master -> origin)
λ php think migrate:create Admin
[think\exception\ThrowableError]
Fatal error: Class 'think\facade\Env' not found
Exception trace:
() at F:\code\php\demo\tp5.1\vendor\topthink\think-migration\src\command\Migrate.php:34
think\migration\command\Migrate->getPath() at F:\code\php\demo\tp5.1\vendor\topthink\think-migration\src\command\migrate\Create.php:43
think\migration\command\migrate\Create->execute() at F:\code\php\demo\tp5.1\thinkphp\library\think\console\Command.php:175
think\console\Command->run() at F:\code\php\demo\tp5.1\thinkphp\library\think\Console.php:674
think\Console->doRunCommand() at F:\code\php\demo\tp5.1\thinkphp\library\think\Console.php:242
think\Console->doRun() at F:\code\php\demo\tp5.1\thinkphp\library\think\Console.php:185
think\Console->run() at F:\code\php\demo\tp5.1\thinkphp\library\think\Console.php:145
think\Console::init() at F:\code\php\demo\tp5.1\thinkphp\console.php:20
require() at F:\code\php\demo\tp5.1\think:17按照文档操作,出现了这个错误。是我操作错误了吗。求大神解决 最佳答案