wallet handling
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user