\app\admin\middlewareAuth

系统权限访问管理 Class Auth

Summary

Methods
Properties
Constants
handle()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
buildAuth()
No private properties found
N/A

Methods

handle()

handle(\think\Request  $request, \Closure  $next) : mixed

Parameters

\think\Request $request
\Closure $next

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

Returns

mixed

buildAuth()

buildAuth(string  $node) : array

根据节点获取对应权限配置

Parameters

string $node

权限节点

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

Returns

array