Comments (5)
有点没看明白呢,不希望包内route生效的话,可以试试用命令行把route缓存起来,目前是没有缓存的时候才加载的模块里的路由。
if (!$this->app->routesAreCached()) {
require __DIR__ . '/../routes.php';
}
如果只是因为表的问题的话,可以修改下后台管理系统的auth.php
配置里的modal
,默认是App\User
,你可以改成别的,就会默认校验别的表了。
如果是因为前端和后台管理系统都在同一个系统里,需要区分User和Admin的登录的话,可以试试multiauth,不过现在我们没有加入这个部分呢,一般来说后台管理系统和前端的系统都是分离的。
有问题再沟通~
from foroneadministrator.
@RJustice 加入了新的forone配置属性,可以直接禁用所有自带的routes
from foroneadministrator.
赞的, 感谢. 已更新.
from foroneadministrator.
@RJustice 现在先是放到了dev-master里,回头再加点功能再打个标签。还加了管理员表的配置和AuthController的配置,有问题再随时沟通~
from foroneadministrator.
@RJustice 加多了一个forone:copy的命令,可以把routes和相关的Controllers都copy到项目里,然后就可以全部自定义了
from foroneadministrator.
Related Issues (20)
- 七牛SDK需要更新版本 HOT 1
- laravel 5.4 支持吗?
- laravel5.2 HOT 6
- !!!!!!!在SESSION_DRIVER=redis 时 报 ReflectionException in Container.php line 741: Class cache does not exist HOT 1
- 安装时报错 zizaco/entrust HOT 3
- 下拉列表怎么用blade中的foreach呢 HOT 2
- Fatal error: Class 'Route' not found HOT 2
- These credentials do not match our records. HOT 1
- 发现按钮点击修改字段值的小问题 HOT 1
- 登录后提示:Class admin.permission does not exist HOT 2
- 无法安装 HOT 1
- 安装失败 HOT 1
- 安装失败
- 后台界面收起左边菜单不管用 HOT 1
- 视图控件 数据源 buttons按钮get参数定义无效 HOT 1
- laravel 5.2 安装出现问题 HOT 1
- Edit user info error HOT 1
- 操作几次后总是会被重定向到登陆界面 HOT 3
- 手机UC浏览器登入后,菜单栏无法调出 HOT 3
- git clone composer install 然后 require报错 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from foroneadministrator.