fix product show
This commit is contained in:
@@ -384,7 +384,7 @@ class WalletController extends Controller
|
|||||||
return response()->json($records);
|
return response()->json($records);
|
||||||
}
|
}
|
||||||
public function index_withdraw_physical(Request $request){
|
public function index_withdraw_physical(Request $request){
|
||||||
$records = Withdraw::with(['customer','bank_account','Address',"Transaction.product"])->where("customer_id",auth('customer')->id())->whereBetween('sts', [49, 70]);
|
$records = Withdraw::with(['customer','bank_account','Address',"Transaction.product.file"])->where("customer_id",auth('customer')->id())->whereBetween('sts', [49, 70]);
|
||||||
TableEngine::create($records, $request->all())
|
TableEngine::create($records, $request->all())
|
||||||
->initSearch(['customer.name'])
|
->initSearch(['customer.name'])
|
||||||
->select([
|
->select([
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ class Transaction extends Model
|
|||||||
'amount',
|
'amount',
|
||||||
'trade_by_quantity',
|
'trade_by_quantity',
|
||||||
'metal_id',
|
'metal_id',
|
||||||
|
'file_id',
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
public function order()
|
public function order()
|
||||||
|
|||||||
Reference in New Issue
Block a user