Replies: 1 comment 1 reply
-
Setting the deleted column directly isn't the recommended way to restore a model. But use the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there, a question here about the
shouldLogEvent()
method definition.Here is how the function looks in
v4
..What is the purpose of
if ($this->getDirty()[$deletedAtColumn] === null) return false
?I have a factory that defines
'deleted_at' => null
as default model state, in turn, when I seed my model's table there are nocreated
logs for it due to that check.Maybe we can improve on that, that's why I am asking. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions