![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
thinkphp5
fly_gaozhe
目标全栈工程师
展开
-
thinkphp5.1 模型使用leftjoin自定义前缀多了个前缀
$this->field($field) ->alias('a') ->leftjoin(['wst_users' => 'b'],"a.catId = b.userId") ->where($where)->find();这样使用的话 leftjoin就不会多出来个配置的数据表前缀 ...原创 2019-12-30 12:38:34 · 1596 阅读 · 0 评论 -
phpword简单使用(题库_thinkphp版)
#安装composer require phpoffice/phpword //稳定composer require phpoffice/phpword:dev-master //最新版本 等待更新原创 2019-11-30 12:17:00 · 791 阅读 · 0 评论 -
thinkphp5 处理options跨域问题
Route::resource('news','index/news')->header('Access-Control-Allow-Credentials', 'true')->allowCrossDomain();原创 2019-11-13 10:42:21 · 1355 阅读 · 0 评论