mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 12:24:09 +00:00
Merge branch 'fix/slice-error' into 'master'
fix booking not found bug See merge request CIEFWorldwideSdnBhd/exchange!114
This commit is contained in:
@@ -24,6 +24,7 @@ class BookingController extends Controller
|
||||
public function index(){
|
||||
$user = Auth::user();
|
||||
$bookings = Booking::select('user_id', 'id', 'created_at', 'status', 'rate', 'term', 'amount', 'bia', 'verification_status')
|
||||
->where('user_id', Auth::user()->id)
|
||||
->where('status', '<', '7')
|
||||
->orderby('updated_at','desc')
|
||||
->paginate(10);
|
||||
@@ -316,7 +317,10 @@ class BookingController extends Controller
|
||||
}
|
||||
|
||||
return $booking;
|
||||
}
|
||||
}
|
||||
else{
|
||||
return response()->json(['success'=>false, 'message'=>'Booking not found'], 404);
|
||||
}
|
||||
}
|
||||
|
||||
public function adminShow($id)
|
||||
|
||||
Reference in New Issue
Block a user