mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange.git
synced 2026-08-19 04:14:04 +00:00
fix booking not found bug
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);
|
||||
@@ -78,10 +79,6 @@ class BookingController extends Controller
|
||||
return $bookings;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public function userComplete(){
|
||||
$user = Auth::user();
|
||||
$bookings = Booking::select('user_id', 'id', 'created_at', 'status', 'rate', 'term', 'amount', 'bia', 'verification_status')
|
||||
@@ -320,7 +317,10 @@ class BookingController extends Controller
|
||||
}
|
||||
|
||||
return $booking;
|
||||
}
|
||||
}
|
||||
else{
|
||||
return response()->json(['success'=>false, 'message'=>'Booking not found'], 404);
|
||||
}
|
||||
}
|
||||
|
||||
public function adminShow($id)
|
||||
|
||||
@@ -13,6 +13,7 @@ RUN curl --silent --show-error --fail --location \
|
||||
COPY Caddyfile /etc/Caddyfile
|
||||
|
||||
WORKDIR /var/www
|
||||
ADD ../storage/app/public .
|
||||
RUN ln -sf /var/www/storage/app/public /var/www/public/storage
|
||||
|
||||
CMD ["/usr/bin/caddy", "--conf", "/etc/Caddyfile", "--log", "stdout"]
|
||||
Reference in New Issue
Block a user