Laravel命令行migration报错name option does not exist

D:\phpstudy\PHPTutorial\WWW\Laravel>php artisan make:migration --name aa

                                       
  The "--name" option does not exist.  

D:\phpstudy\PHPTutorial\WWW\Laravel>php artisan make:migration --help
Description:
  Create a new migration file

Usage:
  make:migration [options] [--] <name>

Arguments:
  name                   The name of the migration

Options:
      --create[=CREATE]  The table to be created
      --table[=TABLE]    The table to migrate
      --path[=PATH]      The location where the migration file should be created
      --realpath         Indicate any provided migration file paths are pre-resolved absolute paths
      --fullpath         Output the full path of the migration
  -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
D:\phpstudy\PHPTutorial\WWW\Laravel>php artisan make:migration user
Created Migration: 2020_02_02_075031_user
发布了668 篇原创文章 · 获赞 75 · 访问量 12万+

猜你喜欢

转载自blog.csdn.net/fujian9544/article/details/104145604