laravel5.5 获取数值的语法?


期望获取值category_id: 3,4
category_id = {{print_r($post->categories['category_id'])}} // at view
ErrorException (E_ERROR)
Undefined index: category_id
[upl-image-preview url=http://static.forum.laravelacademy.org/assets/files/2017-11-24/1511470507-64330-category-post.jpeg]


Vote Vote Cancel Collect Collect Cancel

<< 上一篇: Laragon 32位的在哪里下载?下载默认都是64位的

>> 下一篇: 表数据获取问题