Laravel/Lumen - Artisan 控制台中缺少命令

Laravel/Lumen - missing commands in Artisan console

我在运行 Laravel 的 Artisan 时遇到问题。大多数命令都丢失了。在最后一次 composer/code 更新之前一切正常。

举个例子,如果我写 php artisan migrate,我会得到以下错误:Command "migrate" is not defined.

下面是我通过输入 php artisan.

获得的输出示例
Laravel Framework version Lumen (5.1.6) (Laravel Components 5.1.*)

Usage:
  command [options] [arguments]

Options:
  -h, --help            Display this help message
  -q, --quiet           Do not output any message
  -V, --version         Display this application version
      --ansi            Force ANSI output
      --no-ansi         Disable ANSI output
  -n, --no-interaction  Do not ask any interactive question
      --env[=ENV]       The environment the command should run under.
  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:
  help          Displays help for a command
  list          Lists commands
  serve         Serve the application on the PHP development server
 schedule
  schedule:run  Run the scheduled commands

有人知道如何解决这个问题吗?

语法已更改为 php artisan make:migration。

您可以通过 运行 php artisan list

查看完整的命令列表

作曲家似乎有问题。不知何故 composer.lock 进入了 git 忽略列表,生产中使用的库与开发中使用的库不同。