讨论数量: 28
![](https://cdn.learnku.com/uploads/avatars/10187_1484710388.jpeg!/both/100x100)
回复内容过滤 XSS 后内容为空时,使用更加友好的处理方式
![](https://cdn.learnku.com/uploads/avatars/19745_1509604618.png!/both/100x100)
具体哪些操作会触发观察者事件?
![](https://cdn.learnku.com/uploads/avatars/18170_1502095632.jpeg!/both/100x100)
为什么是 $reply->topic->increment ('reply_count', 1) 而不是 $reply->topic ()->increment ('reply_count', 1)?
![](https://cdn.learnku.com/uploads/avatars/27860_1532584760.png!/both/100x100)
不太能理解 fillable 的作用?
![](https://cdn.learnku.com/uploads/avatars/14111_1490751740.jpeg!/both/100x100)
clean 这里的参数?
![](https://cdn.learnku.com/uploads/avatars/11315_1487138123.jpeg!/both/100x100)
回复数量没增加成功?
![](https://cdn.learnku.com/uploads/avatars/13367_1489735787.jpeg!/both/100x100)
观察器里面过滤 xss 后,字段变为空值,这时候还能重新验证字段规则吗?
![](https://cdn.learnku.com/uploads/avatars/29844_1538640984.jpg!/both/100x100)
新建话题问题
![](https://cdn.learnku.com/uploads/images/201801/03/1/53yTn1mLOK.jpg)
保存回复时候,报错:Call to undefined method Illuminate\Database\Query\Builder::link ()?
![](https://cdn.learnku.com/uploads/avatars/20524_1513153623.jpg!/both/100x100)
注册观察器
![](https://cdn.learnku.com/uploads/images/201801/03/1/AsLlHzUmyq.jpg)
我的 “帖子创建成功” 提示信息去哪儿了 ???
![](https://cdn.learnku.com/uploads/avatars/21478_1516766304.png!/both/100x100)
跑通了,但 phpstorm 内显示错误下划线 $reply->content = $request->content ?
![](https://cdn.learnku.com/uploads/avatars/22790_1520050571.jpg!/both/100x100)
发表回复 +1 的问题
![](https://cdn.learnku.com/uploads/avatars/45812_1563939371.jpeg!/both/100x100)
为什么 $request->all () 没有写入 topic_id?
![](https://cdn.learnku.com/uploads/avatars/3965_1469534765.jpg!/both/100x100)
采用防止 XSS 过滤后 有可能回复内容过滤后为空进入数据库?
![](https://cdn.learnku.com/uploads/avatars/56636_1579101352.jpeg!/both/100x100)
消息通知中文编码问题
![](https://cdn.learnku.com/uploads/avatars/22443_1519355547.jpg!/both/100x100)
我没有做 SEO 友好的 URL,这里应该咋写呢?
![](https://cdn.learnku.com/uploads/avatars/39372_1587984300.png!/both/100x100)
关于请求超时 Git status -s exceeded the timeout of 60seconds
![](https://cdn.learnku.com/uploads/images/201801/03/1/AsLlHzUmyq.jpg)
发现从这一节开始虚拟机和项目操作反应变慢
![](https://cdn.learnku.com/uploads/images/201801/03/1/CSBCkyd2E8.jpg)
内容被过滤后,内容为空,同样可以写入数据库?
![](https://cdn.learnku.com/uploads/avatars/39435_1555898407.jpeg!/both/100x100)
topics 数据表内回复数无值
![](https://cdn.learnku.com/uploads/avatars/23772_1522287911.jpg!/both/100x100)
lara-mix 一直有一个错误提示,我都排查不出来,那位大神可以指点一下,帮忙看看
![](https://cdn.learnku.com/uploads/avatars/24172_1579608831.png!/both/100x100)
当头像不存在回复时会出现样式错误
![](https://cdn.learnku.com/uploads/avatars/26469_1529485878.jpg!/both/100x100)
Observers 中的 created 和 saved 有什么区别吗?
![](https://cdn.learnku.com/uploads/avatars/41044_1558427483.png!/both/100x100)
回复一些内容导致页面样式出错
![](https://cdn.learnku.com/uploads/avatars/16304_1556534321.png!/both/100x100)
关于RepliesController.php中store方法中$request->content的问题
![](https://cdn.learnku.com/uploads/avatars/65140_1613774957.png!/both/100x100)
关于$topic->replies和$topic->replies()的区别
![](https://cdn.learnku.com/uploads/avatars/38825_1554965194.png!/both/100x100)
优化话题回复数