Replies: 2 comments
-
I know this was a while ago, but I can confirm this happens as well. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Up ? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I was going to submit a bug, but I wanted to check first:
I would expect the refresh of a model to refresh the count on a model also, but I'm unsure that this should be the desired behaviour?
$account = Account::withCount('users')->first();
$account->users_count;
// 6
$account->refresh();
$account->users_count;
// NULL
Beta Was this translation helpful? Give feedback.
All reactions