Replies: 1 comment
-
I know this was a while ago, but I can confirm this happens as well. |
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
-
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