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.
1 parent e296177 commit c2c95d8Copy full SHA for c2c95d8
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