当前位置: 首页 > news >正文

湖北住房与城乡建设部网站百度快速排名用什

湖北住房与城乡建设部网站,百度快速排名用什,阿里云个人网站建设书,学校网站建设所使用的技术在使用tp框架的时候tp内置了一个think的命令行工具, 这个工具可以帮助我们快速的生成控制器,模型,中间件的代码。 这个工具就和laravel中的 artisan 的作用都差不多,只是名称不同而已。 tp中常用的命令行工具: 1. 快…

在使用tp框架的时候tp内置了一个think的命令行工具, 这个工具可以帮助我们快速的生成控制器,模型,中间件的代码。 这个工具就和laravel中的 artisan 的作用都差不多,只是名称不同而已。

tp中常用的命令行工具:

1. 快速生成应用

如果使用了多应用模式,可以快速生成一个应用,例如生成demo应用的指令如下:

php think build demo

会自动生成demo应用,自动生成的应用目录包含了controller、model和view目录以及common.php、middleware.php、event.php和provider.php等文件。生成成功后,我们可以直接访问demo应用.

2. 快速生成控制器

 php think make:controller index@Blog
 空控制器生成: php think make:controller index@Blog --plain


  带后缀的类库: php think make:controller index@BlogController


 3. 快速生成模型
 php think make:model index@Blog
 带后缀的类库:php think make:model index@BlogModel

快速生成服务: php think make:service index@BlogService


 4. 快速生成中间件
 php think make:middleware Auth
 
 5. 创建验证器类
 php think make:validate index@User
 
 6. 创建自定义指令
 php think make:command Hello hello

7. 清理缓存
 php think clear
 生成路由映射缓存optimize:route
 php think optimize:route index

php think命令行帮助

php think              

version 8.0.3

Usage:

  command [options] [arguments]

Options:

  -h, --help            Display this help message

  -V, --version         Display this console version

  -q, --quiet           Do not output any message

      --ansi            Force ANSI output

      --no-ansi         Disable ANSI output

  -n, --no-interaction  Do not ask any interactive question

  -v|vv|vvv, --verbose  Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Available commands:

  build             Build App Dirs

  clear             Clear runtime file

  help              Displays help for a command

  list              Lists commands

  run               PHP Built-in Server for ThinkPHP

  version           show thinkphp framework version

 make

  make:command      Create a new command class

  make:controller   Create a new resource controller class

  make:event        Create a new event class

  make:listener     Create a new listener class

  make:middleware   Create a new middleware class

  make:model        Create a new model class

  make:service      Create a new Service class

  make:subscribe    Create a new subscribe class

  make:validate     Create a validate class

 optimize

  optimize:route    Build app route cache.

  optimize:schema   Build database schema cache.

 route

  route:list        show route list.

 service

  service:discover  Discover Services for ThinkPHP

 vendor

  vendor:publish    Publish any publishable assets from vendor packages

http://www.hkea.cn/news/326777/

相关文章:

  • 网站策划与建设阶段的推广方法网络软文怎么写
  • 漳州公司做网站重庆网站建设
  • 十大网络平台有哪些网站关键词排名seo
  • 建b2c网站google官方下载安装
  • 广州b2b网站建设公司推广网站
  • 新乡市封丘县建设局网站百度教育官网登录入口
  • 网站开发项目点击器
  • 建公司网站需要多少钱推广普通话手抄报内容资料
  • 东莞市建设监督网站首页app宣传推广方案
  • 网站设计基本功能域名免费注册0元注册
  • 徐州网站建设的特点营销咨询公司
  • 网站建设问题表在seo优化中
  • 网站建设公司 倒闭店铺推广方法
  • 网站搭建素材短视频培训
  • amazon虚拟机免费做网站百度信息流怎么收费
  • 深圳做网站推广公司聊城seo整站优化报价
  • 深圳专业app网站开发企业网站建设原则是
  • 网站开发师职责柳州网站建设哪里有
  • 自己做的网站怎么改电话网络推广代运营公司
  • 做水果的网站有哪些google高级搜索
  • 怎么用网站做文案百度推广可以自己开户吗
  • 做的好的新闻网站排名优化
  • 购物网站开发功能百度联盟个人怎么接广告
  • 网站如何盈利流量费网站seo搜索引擎的原理是什么
  • 泰安房产价格最新域名年龄对seo的影响
  • 网站打不开怎么回事引流推广平台有哪些
  • 课程网站建设特色成都seo外包
  • 建设厅安全员证书查询网站外链seo推广
  • 邢台手机网站建设服务百度查重软件
  • 网站开发开题报告ppt竞价运营是做什么的