We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e296177 + c2c95d8 commit 2a7196cCopy full SHA for 2a7196c
src/Traits/HasWallet.php
@@ -236,7 +236,7 @@ public function getBalanceAttribute(): int
236
*/
237
$collection = $this->getRelation('balance');
238
$relation = $collection->first();
239
- static::$cachedBalances[$this->getKey()] = (int)($relation->total ?? 0);
+ static::$cachedBalances[$this->getKey()] = (int) ($relation->total ?? 0);
240
}
241
242
return static::$cachedBalances[$this->getKey()];
0 commit comments