You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am expecting to get the latest version but I get the first. I see in the sources that it returns latest() relationship, so to get the latest version I have to use:
$model->lastVersion()->first();
In this case I get what I expect.
Suggestion: Edit the docs or update the code
The text was updated successfully, but these errors were encountered:
The docs are misleading. When I call:
I am expecting to get the latest version but I get the first. I see in the sources that it returns
latest()
relationship, so to get the latest version I have to use:In this case I get what I expect.
Suggestion: Edit the docs or update the code
The text was updated successfully, but these errors were encountered: