GithubHelp home page GithubHelp logo

Comments (5)

mani95lisa avatar mani95lisa commented on August 19, 2024

有点没看明白呢,不希望包内route生效的话,可以试试用命令行把route缓存起来,目前是没有缓存的时候才加载的模块里的路由。

if (!$this->app->routesAreCached()) {
            require __DIR__ . '/../routes.php';
        }

如果只是因为表的问题的话,可以修改下后台管理系统的auth.php配置里的modal,默认是App\User,你可以改成别的,就会默认校验别的表了。

如果是因为前端和后台管理系统都在同一个系统里,需要区分User和Admin的登录的话,可以试试multiauth,不过现在我们没有加入这个部分呢,一般来说后台管理系统和前端的系统都是分离的。

有问题再沟通~

from foroneadministrator.

mani95lisa avatar mani95lisa commented on August 19, 2024

@RJustice 加入了新的forone配置属性,可以直接禁用所有自带的routes

from foroneadministrator.

RJustice avatar RJustice commented on August 19, 2024

赞的, 感谢. 已更新.

from foroneadministrator.

mani95lisa avatar mani95lisa commented on August 19, 2024

@RJustice 现在先是放到了dev-master里,回头再加点功能再打个标签。还加了管理员表的配置和AuthController的配置,有问题再随时沟通~

from foroneadministrator.

mani95lisa avatar mani95lisa commented on August 19, 2024

@RJustice 加多了一个forone:copy的命令,可以把routes和相关的Controllers都copy到项目里,然后就可以全部自定义了

from foroneadministrator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.