单元测试 修改话题错误?

file
大家有碰到这个错误吗?在话题修改的时候 会出现这错误!
file
我最开始以为是 header的问题 可是加上 application/x-www-form-urlencoded 后还是没有用
数据也么有修改

《L01 基础入门》
我们将带你从零开发一个项目并部署到线上,本课程教授 Web 开发中专业、实用的技能,如 Git 工作流、Laravel Mix 前端工作流等。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
liyu001989
最佳答案

可以在接口里面增加日志看一下是哪的报错。

或者下载 Larabbs 代码看看会不会报错 https://github.com/summerblue/larabbs/tree...

6年前 评论
讨论数量: 3
liyu001989

不是封装了 JWTActingAs 吗

6年前 评论

@liyu001989
是的

file

file
修改话题 和删除 话题 都会有错误 我想是 makeTopic 出了 问题
但是 我打印出来 看上去也没有什么异样 不知道为什么报错
App\Models\Topic Object
(
[fillable:protected] => Array
(
[0] => title
[1] => body
[2] => category_id
[3] => excerpt
[4] => slug
)

[connection:protected] => mysql
[table:protected] => 
[primaryKey:protected] => id
[keyType:protected] => int
[incrementing] => 1
[with:protected] => Array
    (
    )

[withCount:protected] => Array
    (
    )

[perPage:protected] => 15
[exists] => 1
[wasRecentlyCreated] => 1
[attributes:protected] => Array
    (
        [title] => Facere facere occaecati voluptas deleniti dolorum deleniti.
        [body] => <p>Ipsum quia nostrum nesciunt ut soluta. Architecto dolore impedit error dolore non. Ipsam ut tempora animi nobis a nemo quidem.</p>
        [excerpt] => Ipsum quia nostrum nesciunt ut soluta. Architecto dolore impedit error dolore non. Ipsam ut tempora animi nobis a nemo quidem.
        [created_at] => 2018-02-26 18:09:07
        [updated_at] => 2018-03-08 02:40:06
        [user_id] => 49
        [category_id] => 1
        [id] => 136
    )

[original:protected] => Array
    (
        [title] => Facere facere occaecati voluptas deleniti dolorum deleniti.
        [body] => <p>Ipsum quia nostrum nesciunt ut soluta. Architecto dolore impedit error dolore non. Ipsam ut tempora animi nobis a nemo quidem.</p>
        [excerpt] => Ipsum quia nostrum nesciunt ut soluta. Architecto dolore impedit error dolore non. Ipsam ut tempora animi nobis a nemo quidem.
        [created_at] => 2018-02-26 18:09:07
        [updated_at] => 2018-03-08 02:40:06
        [user_id] => 49
        [category_id] => 1
        [id] => 136
    )

[changes:protected] => Array
    (
    )

[casts:protected] => Array
    (
    )

[dates:protected] => Array
    (
    )

[dateFormat:protected] => 
[appends:protected] => Array
    (
    )

[dispatchesEvents:protected] => Array
    (
    )

[observables:protected] => Array
    (
    )

[relations:protected] => Array
    (
    )

[touches:protected] => Array
    (
    )

[timestamps] => 1
[hidden:protected] => Array
    (
    )

[visible:protected] => Array
    (
    )

[guarded:protected] => Array
    (
        [0] => *
    )

)

6年前 评论
liyu001989

可以在接口里面增加日志看一下是哪的报错。

或者下载 Larabbs 代码看看会不会报错 https://github.com/summerblue/larabbs/tree...

6年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!