流明-缺少命令 [英] Lumen - Missing commands

查看:101
本文介绍了流明-缺少命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在经营Lumen's Artisan时遇到问题.大多数命令都丢失了.

I have a problem with running Lumen's Artisan. There are most of the commands missing.

例如,如果我写php artisan routes,则会出现以下错误:未定义命令"routes".

For an example if I write php artisan routes, I get following error: Command "routes" is not defined.

下面是我输入php artisan可获得的输出示例.

Below is an example of output that I get by typing php artisan.

Laravel Framework version Lumen (5.2.5) (Laravel Components 5.2.*)

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
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

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

Does anyone have any ideas how to fix this?

推荐答案

Lumen本机不支持route命令.但是,在Laravel中,您可以执行以下操作:

Lumen doesn't natively support the route command. However, in Laravel, you can do the following:

使用php artisan list显示所有命令.

您要使用的命令应为php artisan route:list

这篇关于流明-缺少命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆