问题描述 查文档得知 中间件 实际情况如下图: 程序代码或配置 Webman\Route /** * Fallback. * @param callable|mixed $callback * @param string $plugin * @return void */ public static function fallback(calla...
问题描述 升级了Webman2.1和webman/log1.2.1版本,运行并访问后报错: ReflectionException: Class "support\Db" does not exist in D:\Documents\Desktop\Pleafles\_Yes\PHP\WorkerMan\_Projects\Webman\vendor\webman\log\src\Middleware.php:256...
问题描述 定义一个公共的模型继承类,看了文档说使用过多static会造成内存泄漏。这样写会遇到内存泄漏或者是其他的问题吗 代码 公共代码 <?php namespace ceshi\basic; use think\db\Query; use think\Model; use think\model\concern\SoftDelete; /** * 基础模型类 * 提供通用的数据库操作方法 */ ...