这篇文章主要介绍了php artisan命令信息列举,本篇文章通过简要的案例,讲解了该项技术的了解与使用,以下就是详细内容,需要的朋友可以参考下
php artisan 命令列表
命令获取

上面的翻译内容
命令 说明 备注php artisan make:resource ? 创建api返回格式化资源 >=5.4版本可用php artisan make:rule ? 创建validate规则 >=5.4版本可用php artisan make:exception ? 创建异常类 >=5.4版本可用php artisan make:factory ? 创建工厂类 >=5.4版本可用php artisan package:discover 重置包的缓存信息 >=5.4版本可用php artisan storage:link ? Create a symbolic link from "public/storage" to "storage/app/public" >=5.4版本可用php artisan view:clear 清楚所有已编译的视图文件 >=5.4版本可用命令 说明 备注php artisan clear-compiled 清除编译后的类文件php artisan down 使应用程序进入维修模式php artisan up 退出应用程序的维护模式php artisan env 显示当前框架环境php artisan fresh 清除包含框架外的支架php artisan help 显示命令行的帮助php artisan list 列出命令php artisan migrate 运行数据库迁移php artisan env 显示当前框架环境php artisan optimize 为了更好的框架去优化性能php artisan serve 在php开发服务器中服务这个应用 --port 8080,--host 0.0.0.0php artisan tinker 在应用中交互php artisan app:name ? 设置应用程序命名空间php artisan auth:clear-resets 清除过期的密码重置密钥 未使用过php artisan cache:clear 清除应用程序缓存php artisan cache:table 创建一个缓存数据库表的迁移php artisan config:cache 创建一个加载配置的缓存文件php artisan config:clear 删除配置的缓存文件php artisan db:seed 数据库生成模拟数据php artisan event:generate 生成event和listen 需要实现配置eventserviceprivoderphp artisan make:command ? 创建一个新的命令处理程序类php artisan make:console ? 生成一个Artisan命令php artisan key:generate 设置程序密钥php artisan make:controller ? 生成一个资源控制类php artisan make:middleware ? 生成一个中间件php artisan make:migration ? 生成一个迁移文件php artisan make:model ? 生成一个Eloquent 模型类php artisan make:provider ? 生成一个服务提供商的类php artisan make:request ? 生成一个表单消息类php artisan migrate:install ? 创建一个迁移库文件php artisan make:migration ? 生成一个迁移文件php artisan migrate:refresh ? 复位并重新运行所有的迁移php artisan migrate:reset ? 回滚全部数据库迁移php artisan migrate:rollback ? 回滚最后一个数据库迁移php artisan migrate:status 显示列表的迁移php artisan queue:failed 列出全部失败的队列工作php artisan queue:failed-table ? 创建一个迁移的失败的队列数据库工作表php artisan queue:flush 清除全部失败的队列工作php artisan queue:forget ? 删除一个失败的队列工作php artisan queue:listen ? 监听一个确定的队列工作php artisan queue:restart 重启现在正在运行的所有队列工作php artisan queue:retry 重试一个失败的队列工作php artisan queue:subscribe 订阅URL,放到队列上php artisan queue:table 创建一个迁移的队列数据库工作表php artisan queue:work 进行下一个队列任务php artisan route:cache 为了更快的路由登记,创建一个路由缓存文件php artisan route:clear 清除路由缓存文件php artisan route:list 列出全部的注册路由php artisan schedule:run 运行预定命令php artisan session:table 创建一个迁移的SESSION数据库工作表php artisan vendor:publish 发表一些可以发布的有用的资源来自提供商的插件包baum包命令命令 说明 备注php artisan baum Get Baum version notice.php artisan baum:install ? Scaffolds a new migration and model suitable for Baum
到此这篇关于php artisan命令信息列举的文章就介绍到这了
相关推荐
© 2020 asciim码
人生就是一场修行