Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

php5.6确实没法存储数据 #11

Open
byphper opened this issue Jul 17, 2020 · 2 comments
Open

php5.6确实没法存储数据 #11

byphper opened this issue Jul 17, 2020 · 2 comments

Comments

@byphper
Copy link

byphper commented Jul 17, 2020

刚开始是依赖版本的原因,在php5.6环境下会报错,后来更新了相应的依赖包到支持php5.6的版本,但是依然没法存储数据,通过调试发现 profile数据是已经拿到了,但是在save数据的时候没有成功,也没有任何错误抛出。
下面是我的依赖包的版本
"php": "^5.6",
"ext-json": "*",
"illuminate/database": "~5.3",
"illuminate/pagination": "~5.3"

@byphper byphper changed the title php5.6及以下 没法使用 依赖包php有版本要求 php5.6 没法使用 依赖包php有版本要求 Jul 17, 2020
@byphper byphper closed this as completed Jul 17, 2020
@byphper byphper changed the title php5.6 没法使用 依赖包php有版本要求 php5.6确实没法存储数据 Jul 18, 2020
@byphper byphper reopened this Jul 18, 2020
@jyiL
Copy link

jyiL commented Jan 11, 2022

你好,我也遇到跟你一样的问题,请问你后面解决了吗

@MrCui
Copy link

MrCui commented Feb 3, 2023

https://github.com/illuminate/database/blob/ac9ae2d82b8a6137400f17b3eea258be3518daa9/Eloquent/Concerns/HasTimestamps.php#L45

illuminate/database 高版本判断了 create_at是否为null, 而低版本没有, 可能是个bug, 所以高版本修复了, 你看看是否是这个原因.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants