fixed عدهف
This commit is contained in:
@@ -43,7 +43,16 @@ class Transaction extends Model
|
||||
}
|
||||
public function product()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Product','product_id')->select(['id','title','group_type']);
|
||||
return $this->belongsTo('App\Models\Product', 'product_id')->select([
|
||||
'id',
|
||||
'title',
|
||||
'group_type',
|
||||
'unit',
|
||||
'direct_price',
|
||||
'amount',
|
||||
'trade_by_quantity',
|
||||
'metal_id',
|
||||
]);
|
||||
}
|
||||
public function order()
|
||||
{
|
||||
|
||||
@@ -22,7 +22,13 @@ class Wallet extends Model
|
||||
}
|
||||
public function Product()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Product','product_id');
|
||||
return $this->belongsTo('App\Models\Product', 'product_id');
|
||||
}
|
||||
|
||||
/** @alias Product */
|
||||
public function product()
|
||||
{
|
||||
return $this->Product();
|
||||
}
|
||||
|
||||
/** کیف اصلی مشتری — بدون fund و بدون product */
|
||||
|
||||
Reference in New Issue
Block a user