这样不行吗 ?
public function shouldAddUnreadClass()
{
// if (user()->id === $this->from_user_id){
// return false;
// }
return $this->unread();
}
谢谢,终于出来了
怎么出现乱码
目前 解决 方案是 直接 return 了 让后 页面 window.location.reload(); 感觉 不太理想
windows平台 开发的 换了 浏览器也不行
如果将 返回 的 'success'=> true 改为 'success'=> 'true' 没有报错 但是 长传成功后 头像 并没有更换 刷新 才可以
请问下 头像上传 成功了 但是放回 json 的 时候参数 不对
ErrorException in Arr.php line 145:
array_key_exists(): The first argument should be either a string or an integer