修复配置管理以及菜单管理,增加验证

This commit is contained in:
2020-03-26 16:19:45 +08:00
parent 1346905e82
commit 8cd53f9366
11 changed files with 190 additions and 153 deletions

View File

@@ -27,10 +27,10 @@ class Admin extends Base {
],
];
// protected $middleware = [
// '\app\http\middleware\Validate',
// '\app\http\middleware\Admin',
// ];
protected $middleware = [
'\app\http\middleware\Validate',
'\app\http\middleware\Admin',
];
protected function initialize() {
$url = str_replace(".", "/", strtolower($this->request->controller())) . '/' . $this->request->action();