上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页
摘要: 1,使用Composer安装依赖 在Laravel项目根目录下使用Composer安装依赖: composer require maatwebsite/excel ~2.1 ps:一定要加上~2.1!!!因为现在已经更新到3.0版本了,如果你不加的话,会安装最新的3.0版本!等运行时候就会报错,类似 阅读全文
posted @ 2020-05-28 16:50 佚小名 阅读(572) 评论(0) 推荐(0) 编辑
摘要: php curl CurlFile CURLOPT_POSTFIELDS 返回false (原因是 curl_file_create函数读取windows本地中文文件名失败); curl_file_create函数在使用的时候,windows默认编码是gbk,所以读取windows系统上中文文件会失 阅读全文
posted @ 2020-05-27 09:47 佚小名 阅读(456) 评论(0) 推荐(0) 编辑
摘要: select $select from hlyun_cost_vouchers left join (select VoucherId,BillId from hlyun_cost_index_vouchers_bills group by VoucherId) as hlyun_cost_inde 阅读全文
posted @ 2020-03-24 10:30 佚小名 阅读(759) 评论(0) 推荐(0) 编辑
摘要: 首先在nginx.conf中进行如下配置: 再把所有 fastcgi_pass 127.0.0.1:9000; 改为 fastcgi_pass phpfastcgi_proxy; server { listen 7000; server_name localhost; location / { ad 阅读全文
posted @ 2020-01-09 16:48 佚小名 阅读(1096) 评论(0) 推荐(0) 编辑
摘要: 调用方式 阅读全文
posted @ 2019-08-24 14:20 佚小名 阅读(506) 评论(0) 推荐(0) 编辑
摘要: $dataTempQuery = $dispatchCostPay->groupBy('costs.ID')->union($orderCostPay->groupBy('costs.ID')); $data = \DB::table(\DB::raw("({$dataTempQuery->toSql()}) as t"))->groupBy('ID')->skip($skip)->limit(... 阅读全文
posted @ 2019-07-10 12:00 佚小名 阅读(1116) 评论(2) 推荐(0) 编辑
摘要: 解决办法: 添加过滤cookie key 阅读全文
posted @ 2019-03-26 14:29 佚小名 阅读(766) 评论(0) 推荐(0) 编辑
摘要: 由于控制器方法重复命名重启swoole后运行代码导致 504 Gateway Time-out ,查看laravel日志和nginx日志才找原因所在,以后还是要多看错误日志。 阅读全文
posted @ 2019-02-22 11:42 佚小名 阅读(391) 评论(0) 推荐(0) 编辑
摘要: webgrind这个性能检测是需要xdebug来配合,因为webgrind 进行性能检测分析就是通过xdebug生成的日志文件进行编译分析的 那么这就需要们配置好xdebug,这个一般的php 版本都已经有这个扩展了, 如何开启呢? 和php大部分扩展一样需要在ini文件中 引入扩展,同时配置开启x 阅读全文
posted @ 2019-02-18 10:45 佚小名 阅读(571) 评论(0) 推荐(0) 编辑
摘要: 1、获取上传的文件 $file=$request->file('file');2、获取上传文件的文件名(带后缀,如abc.png) $filename=$file->getClientOriginalName();3、获取上传文件的后缀(如abc.png,获取到的为png) $fileextensi 阅读全文
posted @ 2019-01-23 17:38 佚小名 阅读(5994) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 12 下一页