Laravel / Lumen - Missing Commands in the Artisan Console

I have a problem running Laravel Artisan. Most teams are missing. Everything worked fine until the last composer / code update.

As an example, if I write php artisan migrate, I get the following error:Command "migrate" is not defined.

The following is an example of the output that I get by typing 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

Does anyone have any ideas how to fix this?

+4
source share
2 answers

The composer seems to have a problem. Somehow I composer.lockgot into the git ignore list, and the libraries used for production were different than those used in development.

0

php artisan make: migration.

, php artisan

-2

Source: https://habr.com/ru/post/1623040/


All Articles