zoukankan      html  css  js  c++  java
  • tp6 多模块多应用路由

    php think make:controller mpos@admin/v1/Blog --plain
    应用名@一层目录/二层目录/控制器名称

    路由

    Route::get("test2","admin.v1.Blog/test2");

    image

    验证器

    php think make:validate mpos@api/User

    多应用下中间件生成命令

    php think make:middleware dianqian@AllowCrossDomain

    image

    创建模型命令

    php think make:model mpos@admin/v1/Company //应用名@文件1/文件2/模型名称

    查看命令

    php think

    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
    
  • 相关阅读:
    利用docker搭建rtmp服务器(1)
    ES6转换为ES5
    一些乱七八糟的东西
    xss攻击和sq注入
    python asyncio笔记
    图解密码技术一些笔记
    做网页前端遇到的一些问题
    错误处理的一些想法
    吐槽下国内的云笔记
    python的编码问题
  • 原文地址:https://www.cnblogs.com/jigr/p/15392341.html
Copyright © 2011-2022 走看看