wallet fix
This commit is contained in:
@@ -68,7 +68,11 @@ class RequestsController extends Controller
|
||||
{
|
||||
$customer_id = Customer::where('mobile', $request->mobile)->first()?->id;
|
||||
if($customer_id && $customer_id !== null){
|
||||
$wallet = Wallet::select(['owner','gold','cash'])->where('owner',$customer_id)->first();
|
||||
$wallet = Wallet::select(['owner','gold','cash'])
|
||||
->where('owner', $customer_id)
|
||||
->whereNull('fund_id')
|
||||
->whereNull('product_id')
|
||||
->first();
|
||||
}else{
|
||||
throw new UnprocessableEntityHttpException('کاربری با این شماره موبایل یافت نشد.');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user