webman中间件监听sql;回调打印sql语句时自增

public function process(Request $request, callable $next) : Response { Db::connection()->listen(function (QueryExecuted $queryExecuted){ dump("[{$queryExecuted->time} ms] {$queryExecuted->sql}&quo...

sunsgne 发表与 2022-04-27 2553 浏览 1 回答
casbin/webman Error: Call to a member function getPolicy() on null

Error: Call to a member function getPolicy() on null ...

sunsgne 发表与 2022-03-29 1482 浏览 1 回答
casbin权限验证

为角色添加路由权限,只存入最后一条数据...

sunsgne 发表与 2022-03-21 1406 浏览 1 回答
arms 插件 使用 request()报错

Error: Call to a member function tag() on null in /var/www/php/fj-dmp/vendor/webman/arms/src/Arms.php:43 request()->rootSpan->tag('db.statement', $query->sql . " /{$query->time}ms/");...

sunsgne 发表与 2022-03-18 1080 浏览 1 回答

sunsgne

220
积分
0
获赞数
0
粉丝数
2022-03-18 加入
×
🔝