diff --git a/packages/rooyesh/wallet/src/models/Wallet.php b/packages/rooyesh/wallet/src/models/Wallet.php index 763761e..e74f9fc 100644 --- a/packages/rooyesh/wallet/src/models/Wallet.php +++ b/packages/rooyesh/wallet/src/models/Wallet.php @@ -20,15 +20,9 @@ class Wallet extends Model { return $this->belongsTo('App\Models\Fund','fund_id')->select(['id','title']); } - public function Product() - { - return $this->belongsTo('App\Models\Product', 'product_id'); - } - - /** @alias Product */ public function product() { - return $this->Product(); + return $this->belongsTo('App\Models\Product', 'product_id'); } /** کیف اصلی مشتری — بدون fund و بدون product */