jnewer / owladmin-webman
Webman plugin jnewer/owladmin
v1.0.5
2024-09-04 07:21 UTC
Requires
- php: >=8.1
- ext-bcmath: *
- doctrine/annotations: ^2.0
- endroid/qr-code: ^5.0
- illuminate/console: ^10.42
- illuminate/database: ^10.42
- illuminate/events: ^10.42
- illuminate/pagination: ^10.42
- illuminate/redis: ^10.42
- jizhi/migrations-webman: ^1.0
- lpilp/guomi: ^1.0
- overtrue/easy-sms: ^2.5
- php-di/php-di: ^7
- ramsey/uuid: ^4.7
- rap2hpoutre/fast-excel: ^5.5
- shopwwi/webman-auth: ^1.1
- shopwwi/webman-filesystem: ^1.1
- symfony/cache: ^6.4
- symfony/translation: ^6.4
- taoser/webman-validate: ^1.7
- tinywan/storage: ^1.0
- vlucas/phpdotenv: ^5.6
- webman/console: ^1.3
- webman/event: ^1.0
- webman/redis-queue: ^1.2
- workerman/crontab: ^1.0
- yzh52521/webman-hash: ^1.0
- yzh52521/webman-throttle: ^1.1
- zoujingli/ip2region: ^2.0
This package is auto-updated.
Last update: 2024-10-04 07:28:03 UTC
README
基于 OwlAdmin 修改的 Webman 扩展包。
webman 安装
composer create-project workerman/webman
cd webman
数据库配置文件位置为 config/database.php
return [ // 默认数据库 'default' => 'mysql', // 各种数据库配置 'connections' => [ 'mysql' => [ 'driver' => 'mysql', 'host' => '127.0.0.1', 'port' => 3306, 'database' => 'webman', 'username' => 'webman', 'password' => '', 'unix_socket' => '', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => true, 'engine' => null, ], ], ];
安装
composer require jnewer/owladmin-webman
配置 .env (按需添加)
# 语言 APP_LOCALE=zh_CN # admin 登录验证码 ADMIN_LOGIN_CAPTCHA=true # admin https ADMIN_HTTPS=false # admin开发工具 ADMIN_SHOW_DEVELOPMENT_TOOLS=true # 显示自动生成权限按钮 ADMIN_SHOW_AUTO_GENERATE_PERMISSION_BUTTON=true DB_CONNECTION=mysql
配置auth config/plugin/shopwwi/auth/app.php
return [ 'enable' => true, 'app_key' => 'base64:N721v3Gt2I58HH7oiU7a70PQ+i8ekPWRqwI+JSnM1wo=', 'guard' => [ // ........ // 添加 admin 'admin' => [ 'key' => 'id', 'field' => ['id','name','email','mobile'], //设置允许写入扩展中的字段 'num' => 0, //-1为不限制终端数量 0为只支持一个终端在线 大于0为同一账号同终端支持数量 建议设置为1 则同一账号同终端在线1个 'model'=> \plugin\owladmin\app\model\AdminUser::class ] ], // ........
安装数据
php start.php admin:install
运行
php start.php start