mirror of
https://gitlab.com/omair-personal/exchange.git
synced 2026-08-19 12:34:13 +00:00
npmError
This commit is contained in:
@@ -402,6 +402,7 @@ class BookingController extends Controller
|
||||
|
||||
|
||||
if($bankslip_file = $request->file('file'))
|
||||
|
||||
{
|
||||
/* End Validation */
|
||||
$filename = $bankslip_file->getClientOriginalName();
|
||||
@@ -414,7 +415,7 @@ class BookingController extends Controller
|
||||
$upload_path = Storage::disk('public')->putFileAs(
|
||||
'user_bankslip', $bankslip_file, $unique_image_path
|
||||
);
|
||||
|
||||
|
||||
$user_bankslip = $booking->userBankSlip()->first();
|
||||
|
||||
// if user bankslip not exist, create new one
|
||||
@@ -441,7 +442,7 @@ class BookingController extends Controller
|
||||
if(!$user_bankslip){
|
||||
return response()->json(["message"=> "not found"],400);
|
||||
}
|
||||
|
||||
|
||||
// update booking status
|
||||
$booking->status = 3;
|
||||
$booking->admin_status = 2;
|
||||
|
||||
Reference in New Issue
Block a user