-
php webman make:model admin
这个命令连续执行两次,会把之前的同名的覆盖掉
-
```php
Route::group('/admin', function () {
Route::get('/aa', fn() => '');
Route::group('/bb', function () {
Route::get('/cc', fn() => '');
});
})->middleware('abcMiddleware'…
-
各位建议在新建表的时候,表字段名建议不要与Mysql 查询语句中的一些关键字冲突,比如 limit page size 等,我有一个表的字段名叫 limit 结果列表就是出不来,查了好多原因。后面看源码才发现,组装查询条件的时候,会查询表的字段名与参数是否有相同,有相同则会 unset
![image](https://github.com/webman-php/admin/assets/3…
-
-
授权事件中找不到记录,但转发记录中有数据
2024-06-27 10:41:51 pid:1 Worker process terminated with ERROR: E_ERROR "During inheritance of ArrayAccess: Uncaught ErrorException: Return type of EasyWeChat\Kernel\Support\Coll…
-
[2022-06-07 14:09:32] Implicit conversion from float 1.2 to int loses precision {"exception":"ErrorException: Implicit conversion from float 1.2 to int loses precision in D:\\owenzhang\\webman-admin\\…
-
参照webman文档使用事务:https://www.workerman.net/doc/webman/others/transaction.html
用Db::beginTransaction();写法发现事务无法回滚,必须用Db::connection('mysql')->beginTransaction();这种加上连接的方式才有效,发现原因是后台一键菜单生成的model里面设置了prot…
-
I have category in news site
for example
```
http://news.example.com
http://category.example.com
```
how to create news app and other category app ?
-
正常安装配置后,可以访问后台,现在设置配置文件的前缀,就不能打开原来的表,建议是不是在安装填写数据库配置时就增加的前缀选项。
-
大佬你好,我这边接口模块计划使用 eloquent,然后习惯问题使用了 webman-admin 创建数据表,webman-console 命令生成 model 文件,
然后发现这个saiadmin 自动生成代码使用的是thinkorm,里面的时间字段是不一致的,我这边想新建一个 基类 model,覆盖里面的 时间字段和方法,不知道这种想法可不可行,然后其他地方有没有需要修改的?感谢