企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
- cmd 创建模型 ````必须在build同一级目录下才能创建 php think make:model api/BarannerIime ```` ![](https://box.kancloud.cn/05ba8ee413b71eaeaddba7351f653641_568x629.png) ```` //闭包 public function test($id=5) { $result = Db::table('banner_item') ->where(function ($query) use ($id){ $query->where('banner_id','=',$id); }) ->select(); return $result; }