这个
{ $activity->subject }
还可以显示:
{"id":68,"user_id":51,"channel_id":2,"title":"sdcsd","body":"<p>ecsadawawdawdawdawd<\/p>","created_at":"2017-08-22 05:33:38","updated_at":"2017-08-22 05:33:38","replies_count":0,"creator":{"id":51,"name":"TG","email":"[email protected]","created_at":"2017-08-04 06:57:37","updated_at":"2017-08-04 06:57:37"},"channel":{"id":2,"name":"Python","slug":"python","created_at":"2017-08-04 05:39:37","updated_at":"2017-08-04 05:39:37"}
里面是有body这个属性的,但是我再进一步
{ $activity->subject->body }
就开始报错了:
(3/3) ErrorException
Trying to get property of non-object