Skip to content

Commit

Permalink
Merge pull request #1 from welox/patch-1
Browse files Browse the repository at this point in the history
Add WalletLedgers relationship
  • Loading branch information
chrisbjr authored Feb 10, 2020
2 parents 2b9c438 + 6ab2b42 commit 6e1047a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Models/Wallet.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ public function walletType()
{
return $this->belongsTo(WalletType::class);
}

public function walletLedgers()
{
return $this->hasMany(WalletLedger::class);
}

public function getBalanceAttribute()
{
Expand Down

0 comments on commit 6e1047a

Please sign in to comment.