Clarifying status() vs. latestStatus() #134
Unanswered
iuriemalai
asked this question in
Q&A
Replies: 0 comments
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.
-
$model->status()The documentation states that this returns the latest (most recent) status of the model. If no status exists, it returns null.
$model->latestStatus()The documentation states that this is equivalent to $model->status(), meaning it also returns the latest status (most recent?).
So, does this mean that passing a status name to $model->latestStatus() ($model->latestStatus('pending')), it retrieves the most recent occurrence of that specific status, even if it's not the most recent/current one?
Beta Was this translation helpful? Give feedback.
All reactions