ThinkPHP8多应用构建

技能 · 02-29 · 802 人浏览
ThinkPHP8多应用构建

ThinkPHP8 默认单应用模式,需要安装多应用扩展

composer require topthink/think-multi-app

然后在根目录生成所需要的应用模块

php think build ms
php think build cli

上面两行命令会在app目录下生成配套的目录和文件
screenshot-20240229-170212.png

复制根目录的route目录至应用目录下,并删除根目录下的route目录
2024-02-29T09:03:53.png

路由直接指定控制器/方法
screenshot-20240229-170513.png

域名后面必须带应用名,否则无法访问(真的很想吐槽,去掉的方法只有一个,就是为应用单独绑定域名)
2024-02-29T09:06:17.png

ThinkPHP8 多应用 多模块 TP8
取消回复
  1. Robertblarl 昨天

    Unlock unlimited earning potential by joining https://SellAccs.net as a sales representative! With our cutting-edge platform for buying and selling online accounts, you'll have a lucrative market to explore. Benefit from generous commissions, comprehensive training, and dedicated support to propel your sales career to new heights. Join our dynamic team and be part of reshaping the digital commerce landscape. Don't miss out on this exciting opportunity – apply now!

    CLICK THE UP COMING WEBPAGE: https://SellAccs.net

  2. AnthonyFat 4 天前

    Hello colleagues, how is the whole thing, and what you would like to say concerning this piece of writing, in my view its really remarkable in support of me.
    look also at my pages and give a rating

    XEvil is a simple, quickly and effortless system for completely automatic recognition and bypass of the overwhelming majority of captchas (CAPTCHAs), without the need to attach any 3rd-celebration solutions.

    This system almost entirely replaces services for instance AntiGate (Anti-Captcha), RuCaptcha, DeCaptcher and Many others. At the same time, it appreciably exceeds them in recognition velocity (10 periods or maybe more) and is totally absolutely free.

    https://anotepad.com/note/read/fnxxc6xh SpeedyIndex google maps
    https://literasinusantara.com/question/cool-little-speedyindex-google-tool-3/ fast indexing of links meaning
    https://nlifelab.org/bbs/board.php?bo_table=free&wr_id=1524437 fast indexing in outlook
    http://ultfoms.ru/user/ReneeBracker2/ fast indexing python
    https://perguntaspoderosas.blog.br/forums/users/pincharis6841017/ captcha service
    https://perguntaspoderosas.blog.br/forums/users/jonellebergmann/ Xevil
    https://perguntaspoderosas.blog.br/forums/users/gina76t429054277/ Xevil

    @d@=

  3. Mike Audley 5 天前

    Howdy

    I have just took a look on your SEO for dimm.cc for the ranking keywords and saw that your website could use an upgrade.

    We will increase your ranks organically and safely, using only state of the art AI and whitehat methods, while providing monthly reports and outstanding support.

    More info:
    https://www.digital-x-press.com/unbeatable-seo/

    Regards
    Mike Audley

    Digital X SEO Experts

  4. Robertblarl 9 天前

    Looking for a rewarding sales opportunity? Join https://SellAccs.net and harness the power of our cutting-edge platform for online account transactions. As a salesperson, you'll tap into a thriving market with limitless potential. Enjoy competitive commissions, comprehensive training, and dedicated support to fuel your success. Take the leap and become part of our dynamic team reshaping the digital commerce landscape. Apply today and unlock endless opportunities with https://SellAccs.net!

    CLICK AT THIS WEBSITE: https://SellAccs.net

  5. Mike Miers 11 天前

    Hi there,

    My name is Mike from Monkey Digital,

    Allow me to present to you a lifetime revenue opportunity of 35%
    That's right, you can earn 35% of every order made by your affiliate for life.

    Simply register with us, generate your affiliate links, and incorporate them on your website, and you are done. It takes only 5 minutes to set up everything, and the payouts are sent each month.

    Click here to enroll with us today:
    https://www.monkeydigital.org/affiliate-dashboard/

    Think about it,
    Every website owner requires the use of search engine optimization (SEO) for their website. This endeavor holds significant potential for both parties involved.

    Thanks and regards
    Mike Miers

    Monkey Digital

  6. Mike Samuels 11 天前

    Hi there

    Just checked your dimm.cc baclink profile, I noticed a moderate percentage of toxic links pointing to your website

    We will investigate each link for its toxicity and perform a professional clean up for you free of charge.

    Start recovering your ranks today:
    https://www.hilkom-digital.de/professional-linksprofile-clean-up-service/

    Regards
    Mike Samuels
    Hilkom Digital SEO Experts
    https://www.hilkom-digital.de/

  7. 1 03-07

    学习

Theme Jasmine by Kent Liao