tp项目部分接口高并发,如何结合workerman/workerman?

问题描述 项目接口高并发,通过composer require workerman/workerman安装到tp项目里面,要如何操作需要的接口来处理并发问题?...

xtn 发表与 2024-02-07 506 浏览 2 回答
workerman/validation如何实现类似像laravel的unique唯一验证?

问题描述 在新增或者编辑的时候需要验证指定字段的在数据库中的唯一性,就像laravel验证器的unique请问要如何实现?感谢...

xtn 发表与 2023-11-23 311 浏览 2 回答
webman中如何使用illuminate/validation?

webman中如何使用illuminate/validation? 用惯laravel,请问在webman中如何使用illuminate/validation?...

xtn 发表与 2023-10-28 356 浏览 1 回答
webman请求的时候一下正常一下报错

问题描述 同一个接口一下正常一下报错,不知道啥原因 Optional parameter $data declared before required parameter $id is implicitly treated as a required parameter 程序代码 controller代码 /** * 更新數據 * @param Request $request ...

xtn 发表与 2023-10-07 381 浏览 2 回答
webman依赖注入报错must not be accessed before initialization

依赖注入报错 控制器依赖注入service提示Typed property app\admin\controller\LoginController::$service must not be accessed before initialization,请问要如何处理? "php-di/php-di": "^7.0" "workerman/webman-framework": "^1.5.0"...

xtn 发表与 2023-10-05 661 浏览 1 回答
Redis::set一个数组,Redis::get获取到的是一个Array字符串,请问如何处理?

问题描述 Redis::set一个数组,Redis::get获取到的是一个Array字符串,如果用 Cache::set再 Cache::get就正常,请问如何处理? 为此你搜索到了哪些方案及不适用的原因 Redis::set('test',[ 'name'=>'李四', 'age'=>28 ]); var_dump(Redis::ge...

xtn 发表与 2023-09-27 522 浏览 3 回答
在使用依赖自动注入运行时候报错

问题描述 在使用依赖自动注入运行时候报错,还没写代码,是搭建环境 程序代码 //return new Webman\Container; $builder = new \DI\ContainerBuilder(); $builder->addDefinitions(config('dependence', [])); $builder->useAutowiring(true); $builder->...

xtn 发表与 2023-09-22 364 浏览 1 回答
安装webman/admin第二部报错

问题详细描述 安装webman/admin第二部报错 报错信息 { code: 500, message: "Call to a member function connection() on null", traces: "Error: Call to a member function connection() on null in D:\\webman_workspace\\webman\\vendor\\il...

xtn 发表与 2022-10-04 1007 浏览 1 回答

xtn

140
积分
0
获赞数
0
粉丝数
2022-10-04 加入
🔝