上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: syntax error, unexpected end of file 翻译:语法解析错误,缺少闭合标签或者结束标记,如 分号 着我自己翻译的 去对应的文件中检查,我的出错点是:@foreach 少了 @endforeach 阅读全文
posted @ 2020-04-28 11:02 养猪至富 阅读(610) 评论(0) 推荐(0)
摘要: Column not found: 1054 Unknown column 'users.deleted_at' in ' 因为你用到了软删除,但是迁移文件和表里没有 deleted_at 字段,简单的解决办法:手动加上不就完了!!! 阅读全文
posted @ 2020-04-28 10:10 养猪至富 阅读(917) 评论(0) 推荐(0)
摘要: php在线预览pdf文件 1 <?php 2 if(!function_exists('read_pdf')) { 3 function read_pdf($file) { 4 if(strtolower(substr(strrchr($file,'.'),1)) != 'pdf') { 5 ech 阅读全文
posted @ 2020-04-27 20:48 养猪至富 阅读(1651) 评论(0) 推荐(0)
摘要: // 一般都是 其他数据 入库成功 后 才 更新 经纬度的 //发起Http请求 $client = new Client(['timeout' => 5]); //得到URL地址 $url = config('gaode.geocode'); $city = City::findOrFail($f 阅读全文
posted @ 2020-04-26 23:14 养猪至富 阅读(166) 评论(0) 推荐(0)
摘要: public function update(Request $request, FangInfo $fangInfo) { dump($fangInfo); //表单数据 $postData = $request->except(['_token', 'file']); //没入库之前,$fang 阅读全文
posted @ 2020-04-26 22:54 养猪至富 阅读(419) 评论(0) 推荐(0)
摘要: syntax error, unexpected 'endforeach' (T_ENDFOREACH), expecting elseif (T_EL 这是因为,在blade模板里,写的代码:@if()xxxx@endif 需要在xxxx的两边 有空格 阅读全文
posted @ 2020-04-26 18:15 养猪至富 阅读(867) 评论(0) 推荐(0)
摘要: Call to a member function addEagerConstraints() on null public function xxx() { return yyy; } 加上 return 就行了 阅读全文
posted @ 2020-04-25 19:58 养猪至富 阅读(1304) 评论(0) 推荐(1)
摘要: 1、安装guzzle composer require guzzlehttp/guzzle 2、引入 use GuzzleHttp\Client; 3、发起请求 //发起Http请求 并设置超时时间 $client = new Client(['timeout'=>5]); //得到URL地址 $u 阅读全文
posted @ 2020-04-25 19:07 养猪至富 阅读(1079) 评论(0) 推荐(0)
摘要: Numeric value out of range: 1264 Out of range value for column 翻译为,这是数字型的值,你填写的值超过了数据库该字段设置的最大值 解决: 1、修改你填写的表单值,比如数据库限制最大值为100.你就不能填写的超过100 2、改写数据库该字段 阅读全文
posted @ 2020-04-25 17:56 养猪至富 阅读(3546) 评论(0) 推荐(0)
摘要: Call to a member function addEagerConstraints() on null 这是laravel的关联关系出问题 原因:你没有返回关联关系,就调用了关联方法 解决: public function xxx() { return $this->belongsTo(yy 阅读全文
posted @ 2020-04-25 17:50 养猪至富 阅读(1782) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 下一页