ThinkPHP8多应用构建

技能 · 02-29 · 432 人浏览
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. Hi

    This is Mike Kendal

    Let me introduce to you our latest research results from our constant SEO feedbacks that we have from our plans:

    https://www.strictlydigital.net/product/semrush-backlinks/

    The new Semrush Backlinks, which will make your dimm.cc SEO trend have an immediate push.
    The method is actually very simple, we are building links from domains that have a high number of keywords ranking for them. 

    Forget about the SEO metrics or any other factors that so many tools try to teach you that is good. The most valuable link is the one that comes from a website that has a healthy trend and lots of ranking keywords.
    We thought about that, so we have built this plan for you

    Check in detail here:
    https://www.strictlydigital.net/product/semrush-backlinks/

    Cheap and effective

    Try it anytime soon

    Regards
    Mike Kendal

    mike@strictlydigital.net

  2. 1 03-07

    学习

Theme Jasmine by Kent Liao