讨论数量: 35
![](https://cdn.learnku.com/uploads/avatars/21265_1516450845.png!/both/100x100)
总结要点:模型观察器的使用
![](https://cdn.learnku.com/uploads/avatars/17428_1499325183.png!/both/100x100)
Field 'excerpt' doesn't have a default value?
![](https://cdn.learnku.com/uploads/avatars/20827_1514527222.jpeg!/both/100x100)
这一小节有问题,希望作者改正,谢谢?
![](https://cdn.learnku.com/uploads/avatars/27932_1563753411.png!/both/100x100)
关于『注册』『注入』『绑定』三个词的理解,请指正
![](https://cdn.learnku.com/uploads/avatars/17186_1498286155.jpeg!/both/100x100)
Eloquent 观察器 中 saved 方法 和 saving 到底区别在哪里?
![](https://cdn.learnku.com/uploads/avatars/35060_1548122817.jpeg!/both/100x100)
模型观察器 这里有个疑问
![](https://cdn.learnku.com/uploads/avatars/25167_1526002024.jpg!/both/100x100)
关于观察者模式设置 excerpt 值后还报错 Field 'excerpt' doesn't have a default value 的问题 ??
![](https://cdn.learnku.com/uploads/avatars/17266_1498715021.jpeg!/both/100x100)
创建话题保存时提示:No query results for model [App\Models\Bbs\Topic]?
![](https://cdn.learnku.com/uploads/avatars/14241_1490882975.png!/both/100x100)
?创建修改模版 报错。
![](https://cdn.learnku.com/uploads/avatars/23232_1520993867.jpg!/both/100x100)
这里新建帖子的表单验证不是应该是 case POST 吗、PATCH 不应该是对应的是更新也就是编辑吗?
![](https://cdn.learnku.com/uploads/avatars/31831_1545989440.jpg!/both/100x100)
文中的 store 方法里面的 save 方法改成 create 方法为什么会报错呢
![](https://cdn.learnku.com/uploads/images/201801/03/1/53yTn1mLOK.jpg)
helpers.php?
![](https://cdn.learnku.com/uploads/avatars/37971_1553601056.png!/both/100x100)
跟着教程做到这里了后面的越来越懵,这是为什么?
![](https://cdn.learnku.com/uploads/avatars/29673_1536741232.jpeg!/both/100x100)
>with ('message', 'Created successfully.') 显示不正常
![](https://cdn.learnku.com/uploads/avatars/19021_1505463922.jpeg!/both/100x100)
怎么动态识别编辑话题和新建话题?
![](https://cdn.learnku.com/uploads/avatars/22372_1564850332.png!/both/100x100)
请教下文档中关于 $fillable 的问题?
![](https://cdn.learnku.com/uploads/avatars/56636_1579101352.jpeg!/both/100x100)
Eloquent save方法生成的插入字段引号丢失
![](https://cdn.learnku.com/uploads/avatars/53131_1574219553.jpeg!/both/100x100)
request->all() 和 $request->all() 的区别?
![](https://cdn.learnku.com/uploads/avatars/23772_1522287911.jpg!/both/100x100)
跟教程走这里表单验证不生效
![](https://cdn.learnku.com/uploads/avatars/23546_1521702291.jpg!/both/100x100)
TopicRequest 怎么起作用的 1 个字符创建成功了?
![](https://cdn.learnku.com/uploads/avatars/14916_1552900548.gif!/both/100x100)
Simditor 引入后验证新建话题内容的长度 3 个字符有误,是文章没考虑到还是我的问题?
![](https://cdn.learnku.com/uploads/images/201801/03/1/D0QUwoB4hz.jpg)
本文中的观察器 和 3.6 课中的监听器 有什么不同啊
![](https://cdn.learnku.com/uploads/avatars/31734_1541734990.png!/both/100x100)
关于模型观察器的问题
![](https://cdn.learnku.com/uploads/avatars/26214_1528894515.jpeg!/both/100x100)
图片保存不了
![](https://cdn.learnku.com/uploads/images/201801/03/1/xJOU6N13zW.jpg)
驗證那部分,rules 放在 POST 裡才成功?
![](https://cdn.learnku.com/uploads/images/201801/03/1/o9NW9VelF3.jpg)
观察器没有自动注册,需要手动注册?
![](https://cdn.learnku.com/uploads/images/201801/03/1/53yTn1mLOK.jpg)
为什么表单验证类中会出现 PUT?
![](https://cdn.learnku.com/uploads/avatars/95903_1648689760.jpeg!/both/100x100)
把观察器写在模型里是不是更好,不用去注册了
![](https://cdn.learnku.com/uploads/avatars/83588_1623841384.jpeg!/both/100x100)
表单验证类把规则放在PATCH里没用,放在POST里就管用,为什么教程却能把规则放在PATCH里呢
![](https://cdn.learnku.com/uploads/avatars/51815_1614821717.jpg!/both/100x100)
如果不使用辅助方法是否有更简洁的方法
![](https://cdn.learnku.com/uploads/images/201801/03/1/AsLlHzUmyq.jpg)
str_limit 这个方法怎么了?
![](https://cdn.learnku.com/uploads/avatars/27956_1532834439.jpeg!/both/100x100)
单纯的 一条 CURD SQL 语句 是否有必要判断执行成功问题
![](https://cdn.learnku.com/uploads/avatars/13655_1490162781.png!/both/100x100)
str() 会提示找不到这个方法,用以下写法就可以了
![](https://cdn.learnku.com/uploads/avatars/88032_1632229042.png!/both/100x100)
TopicObserver似乎并没有被自动注册
![](https://cdn.learnku.com/uploads/avatars/42953_1637721700.png!/both/100x100)
定制了 observer 并没有注册