Skip to content

在获取数据前先过滤 null 值#63

Merged
slowlyo merged 1 commit intoslowlyo:masterfrom
NotMings:master
Jan 11, 2024
Merged

在获取数据前先过滤 null 值#63
slowlyo merged 1 commit intoslowlyo:masterfrom
NotMings:master

Conversation

@NotMings
Copy link
Contributor

@NotMings NotMings commented Jan 6, 2024

在模型中的 UPDATED_AT 或者 UPDATED_AT 值为 null 的时候需要检测它们是否为 null 不然会报错。

这种将其设置为 null 的情况通常发生在需要由 laravel 仅维护其中一种字段的情况下发生。

@slowlyo slowlyo merged commit 0e04649 into slowlyo:master Jan 11, 2024
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

Successfully merging this pull request may close these issues.

2 participants