laravel5.6命令如下:
通过php artisan list查看,为方便使用,通过百度进行了翻译,仅供参考,未对译文进行纠正。
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:
clear-compiled Remove the compiled class file删除编译后的类文件
down Put the application into maintenance mode将应用程序纳入维护模式
env Display the current framework environment显示当前框架环境
help Displays help for a command显示命令的帮助
list Lists commands列出命令
migrate Run the database migrations运行数据库迁移
preset Swap the front-end scaffolding for the application交换应用程序的前端脚手架
serve Serve the application on the PHP development server在PHP开发服务器上服务应用程序
up Bring the application out of maintenance mode将应用程序从维护模式中移出
app
app:name Set the application namespace设置应用程序命名空间
auth
auth:clear-resets Flush expired password reset tokens刷新过期密码复位令牌
cache
cache:clear Flush the application cache刷新应用程序缓存
cache:forget Remove an item from the cache从缓存中移除项
cache:table Create a migration for the cache database table为缓存数据库表创建迁移
config
config:cache Create a cache file for faster configuration loading为更快的配置加载创建缓存文件
config:clear Remove the configuration cache file删除配置缓存文件
db
db:seed Seed the database with records填充数据库
docs
docs:clear-cache Clears the page cache清除页面缓存
docs:index Index all documentation on Algolia索引Algolia上的所有文档
event
event:generate Generate the missing events and listeners based on registration基于注册生成缺失事件和侦听器
key
key:generate Set the application key设置应用程序密钥
make
make:auth Scaffold basic login and registration views and routes脚手架基本登录和注册视图和路由
make:channel Create a new channel class创建一个新的通道类
make:command Create a new Artisan command创建一个新的Artisan命令
make:controller Create a new controller class创建一个新的控制器类
make:event Create a new event class创建一个新的事件类
make:exception Create a new custom exception class创建一个新的自定义异常类
make:factory Create a new model factory创建工厂模型
make:job Create a new job class创建一个新的作业类
make:listener Create a new event listener class创建一个新的事件侦听器类
make:mail Create a new email class创建一个新的电子邮件类
make:middleware Create a new middleware class创建一个新的中间件类
make:migration Create a new migration file创建新的迁移文件
make:model Create a new Eloquent model class创建一个新的Eloquent模型类
make:notification Create a new notification class创建一个新的通知类
make:observer Create a new observer class创建一个新的观察器类
make:policy Create a new policy class创建新的策略类
make:provider Create a new service provider class创建新的服务提供者类
make:request Create a new form request class创建一个新的表单请求类
make:resource Create a new resource创建新资源
make:rule Create a new validation rule创建新的验证规则
make:seeder Create a new seeder class创建一个新的播种机类
make:test Create a new test class创建一个新的测试类
migrate
migrate:fresh Drop all tables and re-run all migrations删除所有表并重新运行所有迁移
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显示每个迁移的状态
notifications
notifications:table Create a migration for the notifications table为通知表创建迁移
package
package:discover Rebuild the cached package manifest 重建缓存包清单
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:table Create a migration for the queue jobs database table为队列作业数据库表创建迁移
queue:work Start processing jobs on the queue as a daemon作为守护进程在队列中开始处理作业
route
route:cache Create a route cache file for faster route registration为更快的路由注册创建路由缓存文件
route:clear Remove the route cache file删除路由缓存文件
route:list List all registered routes列出所有注册路由
schedule
schedule:run Run the scheduled commands运行计划命令
session
session:table Create a migration for the session database table 为会话数据库表创建迁移
storage
storage:link Create a symbolic link from “public/storage” to “storage/app/public”创建软链接
vendor
vendor:publish Publish any publishable assets from vendor packages从供应商包中发布任何可发布资产
view
view:cache Compile all of the application’s Blade templates 编译所有应用程序的Blade模板
view:clear Clear all compiled view files 清除所有已编译的视图文件