feat(log): 新增框架日志查看器,integrate log viewer and improve log management

- Add log viewer functionality using wolf-leo/phplogviewer package
- Implement log record feature in admin system
- Update log table to include log record button
- Configure default and common log modules in logviewer config

Signed-off-by: wolfcode <37436228+wolf-leo@users.noreply.github.com>
This commit is contained in:
wolfcode
2024-10-09 10:02:42 +08:00
parent a1d4aa97d5
commit a6ec0f143a

View File

@@ -35,7 +35,7 @@ class CheckAuth
!$check && $this->error('无权限访问');
// 判断是否为演示环境
if (env('EASYADMIN.IS_DEMO', false) && $request->isPost()) {
$this->error('演示环境下不允许修改');
if (!in_array($currentNode, ['system.log/record', ''])) $this->error('演示环境下不允许修改');
}
}
return $next($request);