Skip to content

Commit 8b3f7a3

Browse files
author
Babichev Maxim
committed
fix relation wallet
1 parent 22f3a19 commit 8b3f7a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Traits/HasWallet.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ public function wallet(): MorphOne
331331
{
332332
return ($this instanceof WalletModel ? $this->holder : $this)
333333
->morphOne(config('wallet.wallet.model'), 'holder')
334+
->where('slug', config('wallet.wallet.default.slug'))
334335
->withDefault([
335336
'name' => config('wallet.wallet.default.name'),
336337
'slug' => config('wallet.wallet.default.slug'),

0 commit comments

Comments
 (0)