sent / think-auth
thinkphp 权限类
2.0.0
2022-02-26 13:39 UTC
Requires
- php: >=7.0
- topthink/framework: ^6.0.0
Requires (Dev)
- php: >=7.0
This package is not auto-updated.
Last update: 2025-04-06 04:23:29 UTC
README
介绍
thinkphp权限管理类
软件架构
软件架构说明
安装教程
打开命令面板,进入到项目根目录
composer require tensent/think-auth
使用说明
$Auth = new \sent\auth\Auth();
$rule 当前要检验的规则
$uid 当前登录用户
$type 规则类型
$mode 验证模式
$Auth->check($rule, $uid, $type, $mode)