我試圖使用make:console
創建一個調度程序,但它的返回:化妝:命令不Laravel定義5.1.7
[InvalidArgumentException]
Command "make:console" is not defined.
Did you mean one of these?
make:seeder
make:migration
不夠公平,如果這是5.0版本之前,但我目前使用5.1.7。什麼可能導致這個問題?
下面是當前可用的命令列表:
help Displays help for a command
list Lists commands
migrate Run the database migrations
serve Serve the application on the PHP development server
cache
cache:clear Flush the application cache
cache:table Create a migration for the cache database table
db
db:seed Seed the database with records
make
make:migration Create a new migration file
make:seeder Create a new seeder class
migrate
migrate:install Create the migration repository
migrate:refresh Reset and re-run all migrations
migrate:reset Rollback all database migrations
migrate:rollback Rollback the last database migration
migrate:status Show the status of each migration
queue
queue:failed List all of the failed queue jobs
queue:failed-table Create a migration for the failed queue jobs database table
queue:flush Flush all of the failed queue jobs
queue:forget Delete a failed queue job
queue:listen Listen to a given queue
queue:restart Restart queue worker daemons after their current job
queue:retry Retry a failed queue job
queue:subscribe Subscribe a URL to an Iron.io push queue
queue:table Create a migration for the queue jobs database table
queue:work Process the next job on a queue
schedule
schedule:run Run the scheduled commands
如果我修改composer.json
至5.2版本*我收到命令的甚至更薄的選擇:
help Displays help for a command
list Lists commands
migrate Run the database migrations
cache
cache:clear Flush the application cache
db
db:seed Seed the database with records
make
make:migration Create a new migration file
migrate
migrate:install Create the migration repository
migrate:refresh Reset and re-run all migrations
migrate:reset Rollback all database migrations
migrate:rollback Rollback the last database migration
migrate:status Show the status of each migration
queue
queue:failed List all of the failed queue jobs
queue:flush Flush all of the failed queue jobs
queue:forget Delete a failed queue job
queue:listen Listen to a given queue
queue:restart Restart queue worker daemons after their current job
queue:retry Retry a failed queue job
queue:work Process the next job on a queue
schedule
schedule:run Run the scheduled commands
你'make'命令選項似乎嚴重不足。沒有'controller','model'等選項。請檢查您的laravel安裝是否有錯誤。 – linuxartisan
也許嘗試運行'composer update'。正如@linuxartisan暗示你缺少一些**應該在那裏的命令。 – James
是的,我也注意到了。運行'composer update'更新了許多照明組件,但是我仍然遇到同樣的問題。 – Jake