wallet handling

This commit is contained in:
2026-06-15 11:25:10 +03:30
parent e9ddcacdb6
commit 81dfdbdb96
5 changed files with 30 additions and 22 deletions
@@ -24,4 +24,10 @@ class Wallet extends Model
{
return $this->belongsTo('App\Models\Product','product_id');
}
/** کیف اصلی مشتری — بدون fund و بدون product */
public function scopeMain($query)
{
return $query->whereNull('fund_id')->whereNull('product_id');
}
}